diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd-service.sh VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-service.sh --- VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd-service.sh 2011-06-27 15:59:29.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-service.sh 2011-07-01 01:41:25.000000000 +0200 @@ -25,6 +25,15 @@ # Description: VirtualBox Additions Service ### END INIT INFO +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k +#%start: 65 +#%stop: 35 + +#deps +#%needs: +#%before: +#%after: + PATH=$PATH:/bin:/sbin:/usr/sbin system=unknown @@ -40,6 +49,9 @@ elif [ -f /etc/gentoo-release ]; then system=gentoo PIDFILE="/var/run/vboxadd-service" +elif [ -f /etc/mageversion ]; then + system=magellan + PIDFILE="/var/run/vboxadd-service" elif [ -f /etc/arch-release ]; then system=arch PIDFILE="/var/run/vboxadd-service" @@ -143,6 +155,29 @@ fi fi +if [ "$system" = "magellan" ]; then + . /etc/rc.d/init.d/functions + daemon() { + start-stop-daemon --start --exec $1 -- $2 + } + + killproc() { + start-stop-daemon --stop --exec $@ + } + + fail_msg() { + evaluate_retval + } + + succ_msg() { + evaluate_retval + } + + begin() { + echo -e ${COLOREDSTAR}"$1" + } +fi + if [ "$system" = "arch" ]; then USECOLOR=yes . /etc/rc.d/functions diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd.sh VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd.sh --- VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd.sh 2011-06-27 15:59:29.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd.sh 2011-07-01 01:39:49.000000000 +0200 @@ -28,6 +28,15 @@ # Description: VirtualBox Linux Additions kernel modules ### END INIT INFO +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k +#%start: 70 +#%stop: 30 + +#deps +#%needs: +#%before: +#%after: + PATH=$PATH:/bin:/sbin:/usr/sbin PACKAGE=VBoxGuestAdditions BUILDVBOXGUEST=`/bin/ls /usr/src/vboxguest*/vboxguest/build_in_tmp 2>/dev/null|cut -d' ' -f1` @@ -66,6 +75,8 @@ system=suse elif [ -f /etc/gentoo-release ]; then system=gentoo +elif [ -f /etc/mageversion ]; then + system=magellan elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then system=lfs else @@ -138,6 +149,19 @@ fi fi +if [ "$system" = "magellan" ]; then + . /etc/rc.d/init.d/functions + fail_msg() { + evaluate_retval + } + succ_msg() { + evaluate_retval + } + begin() { + echo -e ${COLOREDSTAR}"$1" + } +fi + if [ "$system" = "lfs" ]; then . /etc/rc.d/init.d/functions fail_msg() { diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd-x11.sh VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-x11.sh --- VirtualBox-4.0.10_OSE/src/VBox/Additions/linux/installer/vboxadd-x11.sh 2011-06-27 15:59:29.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-x11.sh 2011-07-01 01:40:16.000000000 +0200 @@ -28,6 +28,15 @@ # Description: VirtualBox Linux Additions X11 setup ### END INIT INFO +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k +#%start: 70 +#%stop: 30 + +#deps +#%needs: +#%before: +#%after: + PATH=$PATH:/bin:/sbin:/usr/sbin LOG="/var/log/vboxadd-install-x11.log" CONFIG_DIR="/var/lib/VBoxGuestAdditions" @@ -75,6 +84,8 @@ system=suse elif [ -f /etc/gentoo-release ]; then system=gentoo +elif [ -f /etc/mageversion ]; then + system=magellan elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then system=lfs else @@ -147,6 +158,19 @@ fi fi +if [ "$system" = "magellan" ]; then + . /etc/rc.d/init.d/functions + fail_msg() { + evaluate_retval + } + succ_msg() { + evaluate_retval + } + begin() { + echo -e ${COLOREDSTAR}"$1" + } +fi + if [ "$system" = "lfs" ]; then . /etc/rc.d/init.d/functions fail_msg() {