Flush request queue after X-server start
This commit is contained in:
parent
2b98295e12
commit
6a6558d99d
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:$PATH
|
PATH=/usr/local/sbin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
TIMEOUT=10 # wait timeout for X server start
|
TIMEOUT=20 # wait timeout for X server start
|
||||||
let INTEL_IF_FAIL=1 # run on Intel if nVidia fails
|
let INTEL_IF_FAIL=1 # run on Intel if nVidia fails
|
||||||
|
|
||||||
LOCK_FILE=/tmp/.snail.lock
|
LOCK_FILE=/tmp/.snail.lock
|
||||||
|
|
|
@ -31,8 +31,8 @@ rm -f $FIFO_FILE && mkfifo --mode 660 $FIFO_FILE && chgrp video $FIFO_FILE # cre
|
||||||
read <$FIFO_FILE
|
read <$FIFO_FILE
|
||||||
snail.nv_pwr_on && $XSERVER_START_CMD # starting X server
|
snail.nv_pwr_on && $XSERVER_START_CMD # starting X server
|
||||||
flock -u 9
|
flock -u 9
|
||||||
flock 9
|
|
||||||
echo >$FIFO_FILE | cat $FIFO_FILE >/dev/null # flush fifo
|
echo >$FIFO_FILE | cat $FIFO_FILE >/dev/null # flush fifo
|
||||||
|
flock 9
|
||||||
$XSERVER_STOP_CMD && snail.nv_pwr_off # stopping X server
|
$XSERVER_STOP_CMD && snail.nv_pwr_off # stopping X server
|
||||||
done
|
done
|
||||||
} 9>$LOCK_FILE
|
} 9>$LOCK_FILE
|
||||||
|
|
Loading…
Reference in New Issue