2011-10-31 03:36:44 +01:00
|
|
|
--- vboxdrv.sh.in.orig 2011-08-15 14:28:34.000000000 +0200
|
|
|
|
+++ vboxdrv.sh.in 2011-09-13 15:22:47.192000014 +0200
|
|
|
|
@@ -42,18 +42,8 @@
|
2010-05-13 00:42:20 +02:00
|
|
|
|
|
|
|
if [ -n "$INSTALL_DIR" ]; then
|
|
|
|
VBOXMANAGE="$INSTALL_DIR/VBoxManage"
|
2010-11-25 09:09:03 +01:00
|
|
|
- DODKMS="$INSTALL_DIR/src/vboxhost/do_dkms"
|
|
|
|
- BUILDVBOXDRV="$INSTALL_DIR/src/vboxhost/vboxdrv/build_in_tmp"
|
|
|
|
- BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxhost/vboxnetflt/build_in_tmp"
|
|
|
|
- BUILDVBOXNETADP="$INSTALL_DIR/src/vboxhost/vboxnetadp/build_in_tmp"
|
2011-10-31 03:36:44 +01:00
|
|
|
- BUILDVBOXPCI="$INSTALL_DIR/src/vboxhost/vboxpci/build_in_tmp"
|
2010-05-13 00:42:20 +02:00
|
|
|
else
|
|
|
|
VBOXMANAGE="/usr/lib/%PACKAGE%/VBoxManage"
|
2010-11-25 09:09:03 +01:00
|
|
|
- DODKMS="/usr/share/%PACKAGE%/src/vboxhost/do_dkms"
|
|
|
|
- BUILDVBOXDRV="/usr/share/%PACKAGE%/src/vboxhost/vboxdrv/build_in_tmp"
|
|
|
|
- BUILDVBOXNETFLT="/usr/share/%PACKAGE%/src/vboxhost/vboxnetflt/build_in_tmp"
|
|
|
|
- BUILDVBOXNETADP="/usr/share/%PACKAGE%/src/vboxhost/vboxnetadp/build_in_tmp"
|
2011-10-31 03:36:44 +01:00
|
|
|
- BUILDVBOXPCI="/usr/share/%PACKAGE%/src/vboxhost/vboxpci/build_in_tmp"
|
2010-05-13 00:42:20 +02:00
|
|
|
fi
|
|
|
|
|
2010-11-25 09:09:03 +01:00
|
|
|
# silently exit if the package was uninstalled but not purged,
|
2011-10-31 03:36:44 +01:00
|
|
|
@@ -299,58 +289,7 @@
|
2010-11-25 09:09:03 +01:00
|
|
|
# setup_script
|
2010-05-13 00:42:20 +02:00
|
|
|
setup()
|
|
|
|
{
|
|
|
|
- stop
|
2010-11-25 09:09:03 +01:00
|
|
|
- begin_msg "Uninstalling old VirtualBox DKMS kernel modules"
|
|
|
|
- $DODKMS uninstall > $LOG
|
|
|
|
- succ_msg
|
2011-10-31 03:36:44 +01:00
|
|
|
- if find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|grep -q vboxpci; then
|
|
|
|
- begin_msg "Removing old VirtualBox pci kernel module"
|
|
|
|
- find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|xargs rm -f 2>/dev/null
|
|
|
|
- succ_msg
|
|
|
|
- fi
|
2010-05-13 00:42:20 +02:00
|
|
|
- if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then
|
|
|
|
- begin_msg "Removing old VirtualBox netadp kernel module"
|
|
|
|
- find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2>/dev/null
|
|
|
|
- succ_msg
|
|
|
|
- fi
|
|
|
|
- if find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|grep -q vboxnetflt; then
|
|
|
|
- begin_msg "Removing old VirtualBox netflt kernel module"
|
|
|
|
- find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|xargs rm -f 2>/dev/null
|
|
|
|
- succ_msg
|
|
|
|
- fi
|
|
|
|
- if find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
|
|
|
|
- begin_msg "Removing old VirtualBox kernel module"
|
|
|
|
- find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
|
|
|
|
- succ_msg
|
|
|
|
- fi
|
2010-11-25 09:09:03 +01:00
|
|
|
- begin_msg "Trying to register the VirtualBox kernel modules using DKMS"
|
|
|
|
- if ! $DODKMS install >> $LOG; then
|
|
|
|
- fail_msg "Failed, trying without DKMS"
|
|
|
|
- begin_msg "Recompiling VirtualBox kernel modules"
|
|
|
|
- if ! $BUILDVBOXDRV \
|
|
|
|
- --save-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
|
|
- --no-print-directory install >> $LOG 2>&1; then
|
|
|
|
- failure "Look at $LOG to find out what went wrong"
|
|
|
|
- fi
|
|
|
|
- if ! $BUILDVBOXNETFLT \
|
|
|
|
- --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
|
|
- --no-print-directory install >> $LOG 2>&1; then
|
|
|
|
- failure "Look at $LOG to find out what went wrong"
|
|
|
|
- fi
|
|
|
|
- if ! $BUILDVBOXNETADP \
|
|
|
|
- --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
2011-06-20 05:37:33 +02:00
|
|
|
- --no-print-directory install >> $LOG 2>&1; then
|
2010-11-25 09:09:03 +01:00
|
|
|
- failure "Look at $LOG to find out what went wrong"
|
|
|
|
- fi
|
2011-10-31 03:36:44 +01:00
|
|
|
- if ! $BUILDVBOXPCI \
|
|
|
|
- --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
|
|
- --no-print-directory install >> $LOG 2>&1; then
|
|
|
|
- failure "Look at $LOG to find out what went wrong"
|
|
|
|
- fi
|
2010-05-13 00:42:20 +02:00
|
|
|
- fi
|
|
|
|
- rm -f /etc/vbox/module_not_compiled
|
|
|
|
- succ_msg
|
|
|
|
- start
|
|
|
|
+ echo "Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead."
|
|
|
|
}
|
|
|
|
|
|
|
|
dmnstatus()
|