From 9c5ee144a1ff702270cb394c4a280c9ceecf7f1e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 25 Jan 2012 00:04:58 +0400 Subject: [PATCH] Fixes bug #3. --- etc/init.d/snail | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/init.d/snail b/etc/init.d/snail index a53e036..30369bf 100755 --- a/etc/init.d/snail +++ b/etc/init.d/snail @@ -15,6 +15,7 @@ start() { export LD_LIBRARY_PATH=/usr/lib/opengl/nvidia/lib:/usr/lib/opengl/nvidia/lib start-stop-daemon --start --quiet --background --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS status=$? + for i in `seq 3`; do snail.nvstat >/dev/null && break; sleep 1; done (nohup snail.autostop &>/dev/null)& eend $status }