|
Lines 24-29
Link Here
|
| 24 |
export XUSER=$user |
24 |
export XUSER=$user |
| 25 |
} |
25 |
} |
| 26 |
|
26 |
|
|
|
27 |
getXconsole() { |
| 28 |
console=`fgconsole`; |
| 29 |
displaynum=`ps t tty$console | sed -n -re 's,.*/X .*:([0-9]+).*,\1,p'` |
| 30 |
if [ x"$displaynum" != x"" ]; then |
| 31 |
export DISPLAY=":$displaynum" |
| 32 |
getXuser |
| 33 |
fi |
| 34 |
} |
| 35 |
|
| 27 |
# Skip if we are just in the middle of resuming. |
36 |
# Skip if we are just in the middle of resuming. |
| 28 |
test -f /var/lock/acpisleep && exit 0 |
37 |
test -f /var/lock/acpisleep && exit 0 |
| 29 |
|
38 |
|