diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2013-04-02 00:11:57 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-04-15 17:20:30 -0500 |
commit | 7b973a455d2ee6734419dd2b3d1698d284742ebf (patch) | |
tree | 87c42673975b31a125e8442cb7c058ab4345fd2e /system/virtualbox/vboxdrv.sh-setup.diff | |
parent | fa082deeef55cf71a8fb5a9435f36cbafe320430 (diff) | |
download | slackbuilds-7b973a455d2ee6734419dd2b3d1698d284742ebf.tar.gz |
system/virtualbox: Updated for version 4.2.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/virtualbox/vboxdrv.sh-setup.diff')
-rw-r--r-- | system/virtualbox/vboxdrv.sh-setup.diff | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/system/virtualbox/vboxdrv.sh-setup.diff b/system/virtualbox/vboxdrv.sh-setup.diff index 58f1963e0d..da6633acc3 100644 --- a/system/virtualbox/vboxdrv.sh-setup.diff +++ b/system/virtualbox/vboxdrv.sh-setup.diff @@ -1,5 +1,5 @@ ---- vboxdrv.sh.in.orig 2012-03-13 15:51:56.000000000 +0100 -+++ vboxdrv.sh.in 2012-09-15 13:15:32.215798169 +0200 +--- vboxdrv.sh.in.orig 2012-12-19 19:27:12.000000000 +0100 ++++ vboxdrv.sh.in 2013-01-06 12:33:27.291744988 +0100 @@ -46,17 +46,13 @@ if [ -n "$INSTALL_DIR" ]; then @@ -19,14 +19,17 @@ if [ -n "$NOLSB" ]; then if [ -f /etc/redhat-release ]; then -@@ -297,62 +293,7 @@ +@@ -297,70 +293,7 @@ # setup_script setup() { - stop -- begin_msg "Uninstalling old VirtualBox DKMS kernel modules" -- $DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG -- succ_msg +- DKMS=`which dkms 2>/dev/null` +- if [ -n "$DKMS" ]; then +- begin_msg "Uninstalling old VirtualBox DKMS kernel modules" +- $DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG +- succ_msg +- fi - 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 @@ -47,9 +50,14 @@ - 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 vboxhost $VERSION >> $LOG; then -- fail_msg "Failed, trying without DKMS" +- if [ -n "$DKMS" ]; then +- begin_msg "Trying to register the VirtualBox kernel modules using DKMS" +- if ! $DODKMS install vboxhost $VERSION >> $LOG; then +- fail_msg "Failed, trying without DKMS" +- DKMS="" +- fi +- fi +- if [ -z "$DKMS" ]; then - begin_msg "Recompiling VirtualBox kernel modules" - if ! $BUILDINTMP \ - --save-module-symvers /tmp/vboxdrv-Module.symvers \ |