aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/9vm3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/init.d/9vm b/etc/init.d/9vm
index 1a13fd9..24d1804 100755
--- a/etc/init.d/9vm
+++ b/etc/init.d/9vm
@@ -5,7 +5,7 @@ description='Plan 9 virtual machine'
VMPATH=/9
SESSION=9vm
-CMD='sh /9/startcon'
+CMD=/9/startcon
PATTERN=qemu-system-i386
depend() {
@@ -15,6 +15,7 @@ depend() {
start() {
ebegin Starting Plan 9 virtual machine
(cd $VMPATH && screen -h 1024 -dmS $SESSION $CMD)
+ sleep 1
if pgrep -f "$PATTERN" > /dev/null
then
eend 0