]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
add binary to be executed
authorElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 21:29:09 +0000 (23:29 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 2 Mar 2014 21:29:09 +0000 (23:29 +0200)
vboxautostart.init

index a41aa3cb2c78a8ca5f771517f375a45afa72bf75..4632537d05022669b8362963cd787e97cb8675ad 100755 (executable)
@@ -13,6 +13,7 @@
 
 VBOXAUTOSTART_DB=/etc/vbox
 VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg
+VBOXAUTOSTART=@INSTALL_DIR@/VBoxAutostart
 
 # Get service config - may override defaults
 [ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
@@ -33,7 +34,7 @@ start() {
     [ -z "$VBOXAUTOSTART_DB" ] && exit 0
     [ -z "$VBOXAUTOSTART_CONFIG" ] && exit 0
 
-       msg_starting "Starting VirtualBox VMs configured for autostart"
+       msg_starting "VirtualBox VMs configured for autostart"
 
     local user PARAMS="--background --start --config $VBOXAUTOSTART_CONFIG"
 
@@ -42,7 +43,7 @@ start() {
 
     for user in `ls $VBOXAUTOSTART_DB/*.start 2>/dev/null`; do
                user=$(basename $user | sed -ne "s/\(.*\).start/\1/p")
-        start_daemon $user $binary $PARAMS
+        start_daemon $user $VBOXAUTOSTART $PARAMS
     done
 
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/vboxautostart
@@ -67,7 +68,7 @@ stop() {
 
     for user in `ls $VBOXAUTOSTART_DB/*.stop 2>/dev/null`; do
                user=$(basename $user | sed -ne "s/\(.*\).stop/\1/p")
-        start_daemon $user $binary $PARAMS
+        start_daemon $user $VBOXAUTOSTART $PARAMS
     done
 
        rm -f /var/lock/subsys/vboxautostart
This page took 0.845248 seconds and 4 git commands to generate.