VirtualBox

Changeset 65534 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 31, 2017 10:48:30 AM (8 years ago)
Author:
vboxsync
Message:

bugref:3809: Linux installer maintenance: do not manually delete device nodes in vboxadd.sh on stop unless the kernel modules were actually removed. If the nodes are created by udev then they will not be recreated on next start, as the module will not be reloaded.

File:
1 edited

Legend:

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

    r64718 r65534  
    271271    fi
    272272    modprobe -q -r -a vboxvideo vboxsf vboxguest
    273     egrep -q 'vboxguest|vboxsf|vboxvideo' /proc/modules &&
     273    if egrep -q 'vboxguest|vboxsf|vboxvideo' /proc/modules; then
    274274        info "You may need to restart your guest system to finish removing the guest drivers."
    275     rm -f $userdev || fail "Cannot unlink $userdev"
    276     rm -f $dev || fail "Cannot unlink $dev"
     275    else
     276        rm -f $userdev || fail "Cannot unlink $userdev"
     277        rm -f $dev || fail "Cannot unlink $dev"
     278    fi
    277279    return 0
    278280}
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