diff -Naur VirtualBox-4.2.6/src/VBox/Installer/linux/scripts/check_module_dependencies.sh VirtualBox-4.2.6-magellan/src/VBox/Installer/linux/scripts/check_module_dependencies.sh --- VirtualBox-4.2.6/src/VBox/Installer/linux/scripts/check_module_dependencies.sh 2012-12-19 18:27:12.000000000 +0000 +++ VirtualBox-4.2.6-magellan/src/VBox/Installer/linux/scripts/check_module_dependencies.sh 2013-01-30 16:50:45.414178111 +0000 @@ -342,6 +342,11 @@ PATTERN_GCC_MAKE= PATTERN_HEADERS= PATTERN_HEADERS_META= + elif $file_exists /etc/mageversion; then # Gentoo + GET_KERN_PACKAGE= + PATTERN_GCC_MAKE= + PATTERN_HEADERS= + PATTERN_HEADERS_META= elif $file_exists /etc/lfs-release -a -d /etc/rc.d/init.d; then # LFS GET_KERN_PACKAGE= PATTERN_GCC_MAKE= diff -Naur VirtualBox-4.2.6/src/VBox/Installer/linux/vboxautostart-service.sh.in VirtualBox-4.2.6-magellan/src/VBox/Installer/linux/vboxautostart-service.sh.in --- VirtualBox-4.2.6/src/VBox/Installer/linux/vboxautostart-service.sh.in 2012-12-19 18:27:12.000000000 +0000 +++ VirtualBox-4.2.6-magellan/src/VBox/Installer/linux/vboxautostart-service.sh.in 2013-01-30 16:54:07.626235188 +0000 @@ -53,6 +53,8 @@ system=debian elif [ -f /etc/gentoo-release ]; then system=gentoo +elif [ -f /etc/mageversion ]; then + system=magellan elif [ -f /etc/arch-release ]; then system=arch elif [ -f /etc/slackware-version ]; then @@ -177,6 +179,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