diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2011-04-03 20:45:31 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-04-05 18:54:18 -0500 |
commit | be0708ffdebb8f7244ca3b3cc695574efccfa071 (patch) | |
tree | 493075a6397bf8c08a9e5cdfdd8f3af2fde3d7f3 /system/virtualbox/vboxdrv.sh-setup.diff | |
parent | 4cea287dd5cd2f44c2197f51c14cc0b1d56308dd (diff) |
system/virtualbox: Renamed from virtualbox-ose and updated for version 4.0.4
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/virtualbox/vboxdrv.sh-setup.diff')
-rw-r--r-- | system/virtualbox/vboxdrv.sh-setup.diff | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/system/virtualbox/vboxdrv.sh-setup.diff b/system/virtualbox/vboxdrv.sh-setup.diff new file mode 100644 index 0000000000000..56f0e61b35ec5 --- /dev/null +++ b/system/virtualbox/vboxdrv.sh-setup.diff @@ -0,0 +1,69 @@ +--- mnt/progs/slack/test/VirtualBox-3.2.10_OSE/src/VBox/Installer/linux/vboxdrv.sh.in 2010-10-08 22:10:25.000000000 +0200 ++++ tmp/vboxdrv.sh.in 2010-10-14 17:43:18.545000084 +0200 +@@ -43,16 +43,8 @@ + + if [ -n "$INSTALL_DIR" ]; then + VBOXMANAGE="$INSTALL_DIR/VBoxManage" +- 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" + else + VBOXMANAGE="/usr/lib/%PACKAGE%/VBoxManage" +- 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" + fi + + # silently exit if the package was uninstalled but not purged, +@@ -284,48 +276,7 @@ + # setup_script + setup() + { +- stop +- begin_msg "Uninstalling old VirtualBox DKMS kernel modules" +- $DODKMS uninstall > $LOG +- succ_msg +- 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 +- 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 \ +- --no-print-directory install >> $LOG 2>&1; then +- failure "Look at $LOG to find out what went wrong" +- fi +- 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() |