diff -Naur VirtualBox-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd-service.sh VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-service.sh --- VirtualBox-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd-service.sh 2010-02-12 20:47:26.000000000 +0100 +++ VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-service.sh 2010-02-19 01:29:09.000000000 +0100 @@ -45,6 +45,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" @@ -148,6 +151,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-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd.sh VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd.sh --- VirtualBox-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd.sh 2010-02-12 20:47:26.000000000 +0100 +++ VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd.sh 2010-02-19 01:31:06.000000000 +0100 @@ -69,6 +69,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 @@ -141,6 +143,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-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd-x11.sh VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-x11.sh --- VirtualBox-3.1.4_OSE/src/VBox/Additions/linux/installer/vboxadd-x11.sh 2010-02-12 20:47:26.000000000 +0100 +++ VirtualBox-3.1.4_OSE-magellan/src/VBox/Additions/linux/installer/vboxadd-x11.sh 2010-02-19 01:29:23.000000000 +0100 @@ -77,6 +77,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 @@ -149,6 +151,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() {