summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/virtualbox-guest-additions/files')
-rw-r--r--app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-3.initd26
1 files changed, 13 insertions, 13 deletions
diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-3.initd b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-3.initd
index 7d3d486..732aaca 100644
--- a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-3.initd
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-3.initd
@@ -11,36 +11,36 @@ depend() {
createvboxdevice() {
local maj min
- maj=`sed -n 's;\([0-9]\+\) vboxadd;\1;p' /proc/devices`
+ maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices`
if ! [[ -z $maj ]] ; then
min=0
else
- min=`sed -n 's;\([0-9]\+\) vboxadd;\1;p' /proc/misc`
+ min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc`
if ! [[ -z $min ]] ; then
maj=10
fi
fi
- mknod /dev/vboxadd c $maj $min -m 0664 &> /dev/null
+ mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null
}
start() {
ebegin "Starting VirtualBox guest additions"
- if [[ -e /dev/vboxadd ]] ; then
- rm -f /dev/vboxadd &> /dev/null
+ if [[ -e /dev/vboxguest ]] ; then
+ rm -f /dev/vboxguest &> /dev/null
fi
einfo " Loading kernel modules and creating devices"
- /sbin/modprobe vboxadd &> /dev/null
+ /sbin/modprobe vboxguest &> /dev/null
createvboxdevice
/sbin/modprobe vboxvfs &> /dev/null
- einfo " Starting the vboxadd system service"
+ einfo " Starting the vboxguest system service"
start-stop-daemon --start --make-pidfile \
- --exec /usr/sbin/vboxadd-service --pidfile /var/run/vboxadd-service.pid \
- --name vboxadd-service \
+ --exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \
+ --name vboxguest-service \
--background -- \
--foreground
@@ -50,13 +50,13 @@ start() {
stop() {
ebegin "Stopping VirtualBox guest additions"
- einfo " Stopping the vboxadd system service"
+ einfo " Stopping the vboxguest system service"
start-stop-daemon --stop --quiet \
- --pidfile /var/run/vboxadd-service.pid --name vboxadd-service
+ --pidfile /var/run/vboxguest-service.pid --name vboxguest-service
einfo " Unloading kernel modules and removing devices"
/sbin/rmmod vboxvfs &> /dev/null
- /sbin/rmmod vboxadd &> /dev/null
- rm -f /dev/vboxadd &> /dev/null
+ /sbin/rmmod vboxguest &> /dev/null
+ rm -f /dev/vboxguest &> /dev/null
eend $?
}