VirtualBox

Changeset 43729 in vbox


Ignore:
Timestamp:
Oct 24, 2012 2:48:10 PM (12 years ago)
Author:
vboxsync
Message:

Installer/linux: do not try to remove DKMS modules either if DKMS is not installed as this will silently fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r43727 r43729  
    300300{
    301301    stop
    302     begin_msg "Uninstalling old VirtualBox DKMS kernel modules"
    303     $DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG
    304     succ_msg
     302    DKMS=`which dkms 2>/dev/null`
     303    if [ -n "$DKMS" ]; then
     304      begin_msg "Uninstalling old VirtualBox DKMS kernel modules"
     305      $DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG
     306      succ_msg
     307    fi
    305308    if find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|grep -q vboxpci; then
    306309        begin_msg "Removing old VirtualBox pci kernel module"
     
    323326        succ_msg
    324327    fi
    325     DKMS=`which dkms 2>/dev/null`
    326328    if [ -n "$DKMS" ]; then
    327329      begin_msg "Trying to register the VirtualBox kernel modules using DKMS"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette