diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/routines.sh VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/routines.sh --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/routines.sh 2011-06-27 16:02:00.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/routines.sh 2011-06-30 22:37:09.000000000 +0200 @@ -195,6 +195,9 @@ elif [ -f /etc/gentoo-release ]; then ro_SYS_TYPE=gentoo ro_INIT_TYPE=sysv + elif [ -f /etc/mageversion ]; then + ro_SYS_TYPE=magellan + ro_INIT_TYPE=sysv elif [ -x /sbin/chkconfig ]; then ro_SYS_TYPE=redhat ro_INIT_TYPE=sysv @@ -404,6 +407,12 @@ { log "addrunlevel: update-rc.d not found" && return 1; } rc-update del $1 > /dev/null 2>&1 rc-update add $1 default > /dev/null 2>&1 + # Magellan Linux + elif [ "$ro_SYS_TYPE" = "magellan" ]; then + test -x `which rc-config` || \ + { log "addrunlevel: rc-config not found" && return 1; } + rc-config del $1 > /dev/null 2>&1 + rc-config add $1 default > /dev/null 2>&1 # Linux from scratch, by the book elif [ "$ro_SYS_TYPE" = "lfs" ]; then test -x /etc/rc.d/init.d/$1 || \ diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-27 16:02:00.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-30 22:42:32.000000000 +0200 @@ -25,6 +25,15 @@ # Description: VirtualBox balloon control daemon ### END INIT INFO +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k +#%start: 80 +#%stop: 20 + +#deps +#%needs: +#%before: +#%after: + PATH=$PATH:/bin:/sbin:/usr/sbin DEBIAN=%DEBIAN% NOLSB=%NOLSB% @@ -57,6 +66,9 @@ elif [ -f /etc/gentoo-release ]; then system=gentoo PIDFILE="/var/run/vboxballoonctrl-service" +elif [ -f /etc/mageversion ]; then + system=magellan + PIDFILE="/var/run/vboxballoonctrl-service" elif [ -f /etc/arch-release ]; then system=arch PIDFILE="/var/run/vboxballoonctrl-service" @@ -183,6 +195,31 @@ fi fi +if [ "$system" = "magellan" ]; then + . /etc/rc.d/init.d/functions + start_daemon() { + usr="$1" + shift + bin="$1" + shift + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@ + } + killproc() { + start-stop-daemon --stop --exec $@ + } + if [ -n "$NOLSB" ]; then + fail_msg() { + evaluate_retval + } + succ_msg() { + evaluate_retval + } + begin_msg() { + echo -e ${COLOREDSTAR}"$1" + } + fi +fi + if [ "$system" = "arch" ]; then USECOLOR=yes . /etc/rc.d/functions diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxweb-service.sh.in VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxweb-service.sh.in --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxweb-service.sh.in 2011-06-27 16:02:00.000000000 +0200 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxweb-service.sh.in 2011-06-30 22:44:39.000000000 +0200 @@ -25,6 +25,15 @@ # Description: VirtualBox web service API ### END INIT INFO +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k +#%start: 80 +#%stop: 20 + +#deps +#%needs: +#%before: +#%after: + PATH=$PATH:/bin:/sbin:/usr/sbin DEBIAN=%DEBIAN% NOLSB=%NOLSB% @@ -57,6 +66,9 @@ elif [ -f /etc/gentoo-release ]; then system=gentoo PIDFILE="/var/run/vboxweb-service" +elif [ -f /etc/mageversion ]; then + system=magellan + PIDFILE="/var/run/vboxweb-service" elif [ -f /etc/arch-release ]; then system=arch PIDFILE="/var/run/vboxweb-service" @@ -183,6 +195,31 @@ fi fi +if [ "$system" = "magellan" ]; then + . /etc/rc.d/init.d/functions + start_daemon() { + usr="$1" + shift + bin="$1" + shift + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@ + } + killproc() { + start-stop-daemon --stop --exec $@ + } + if [ -n "$NOLSB" ]; then + fail_msg() { + evaluate_retval + } + succ_msg() { + evaluate_retval + } + begin_msg() { + echo -e ${COLOREDSTAR}"$1" + } + fi +fi + if [ "$system" = "arch" ]; then USECOLOR=yes . /etc/rc.d/functions