[packages/VirtualBox] add binary to be executed
glen
glen at pld-linux.org
Sun Mar 2 22:37:24 CET 2014
commit 82aa9ee66e5afc6ae9052be90a1bf81ea5c2e563
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 2 23:29:09 2014 +0200
add binary to be executed
vboxautostart.init | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/vboxautostart.init b/vboxautostart.init
index a41aa3c..4632537 100755
--- a/vboxautostart.init
+++ b/vboxautostart.init
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/VirtualBox.git/commitdiff/38d06cb917f0cc76d823b55f3b3a4a424f8130cd
More information about the pld-cvs-commit
mailing list