VirtualBox

Changeset 43749 in vbox


Ignore:
Timestamp:
Oct 25, 2012 7:35:49 PM (12 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: do not try to use DKMS in the Additions either if it is not installed (cosmetic).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r43742 r43749  
    360360cleanup_modules()
    361361{
    362     begin "Removing existing VirtualBox DKMS kernel modules"
    363     $DODKMS uninstall $OLDMODULES > $LOG
    364     succ_msg
     362    if [ -n "$(which dkms 2>/dev/null)" ]; then
     363        begin "Removing existing VirtualBox DKMS kernel modules"
     364        $DODKMS uninstall $OLDMODULES > $LOG
     365        succ_msg
     366    fi
    365367    begin "Removing existing VirtualBox non-DKMS kernel modules"
    366368    for i in $OLDMODULES; do
     
    378380
    379381    # Short cut out if a dkms build succeeds
    380     if $DODKMS install vboxguest $INSTALL_VER >> $LOG 2>&1; then
     382    if [ -n "$(which dkms 2>/dev/null)" ] &&
     383       $DODKMS install vboxguest $INSTALL_VER >> $LOG 2>&1; then
    381384        succ_msg
    382385        return 0
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