packages: VirtualBox/VirtualBox-vboxguest.init - vboxguest has two devices:...

glen glen at pld-linux.org
Sat Mar 24 17:59:06 CET 2012


Author: glen                         Date: Sat Mar 24 16:59:06 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- vboxguest has two devices: /dev/vboxguest and /dev/vboxuser

---- Files affected:
packages/VirtualBox:
   VirtualBox-vboxguest.init (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/VirtualBox/VirtualBox-vboxguest.init
diff -u packages/VirtualBox/VirtualBox-vboxguest.init:1.5 packages/VirtualBox/VirtualBox-vboxguest.init:1.6
--- packages/VirtualBox/VirtualBox-vboxguest.init:1.5	Sat Mar 24 17:38:58 2012
+++ packages/VirtualBox/VirtualBox-vboxguest.init	Sat Mar 24 17:59:01 2012
@@ -12,13 +12,15 @@
 # Source function library
 . /etc/rc.d/init.d/functions
 
-VBOX_DEVICE="/dev/vboxguest"
 VBOX_MODULE="vboxguest"
+VBOX_GUEST_DEVICE="/dev/vboxguest"
+VBOX_USER_DEVICE="/dev/vboxuser"
 
 # Get service config - may override defaults
 [ -f /etc/sysconfig/virtualbox ] && . /etc/sysconfig/virtualbox
 
 setup() {
+	local VBOX_MODULE=$1 VBOX_DEVICE=$2
 	modprobe -s $VBOX_MODULE
 	RETVAL=$?
 
@@ -60,7 +62,8 @@
 		return
 	fi
 
-	setup || exit $?
+	setup $VBOX_MODULE $VBOX_GUEST_DEVICE || exit $?
+	setup $VBOX_MODULE $VBOX_USER_DEVICE || exit $?
 	touch /var/lock/subsys/$VBOX_MODULE
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/VirtualBox/VirtualBox-vboxguest.init?r1=1.5&r2=1.6



More information about the pld-cvs-commit mailing list