VirtualBox

Changeset 58253 in vbox


Ignore:
Timestamp:
Oct 14, 2015 4:48:26 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux (host): more complete kernel module clean-up.

File:
1 edited

Legend:

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

    r58241 r58253  
    379379{
    380380    for i in /lib/modules/*; do
    381         if test -e "${i}/misc/vboxdrv.ko"; then
     381        # We could just do "rm -f", but we only want to try deleting folders if
     382        # we are sure they were ours, i.e. they had our modules in beforehand.
     383        if    test -e "${i}/misc/vboxdrv.ko" \
     384           || test -e "${i}/misc/vboxnetadp.ko" \
     385           || test -e "${i}/misc/vboxnetflt.ko" \
     386           || test -e "${i}/misc/vboxpci.ko"; then
    382387            rm -f "${i}/misc/vboxdrv.ko" "${i}/misc/vboxnetadp.ko" \
    383388                  "${i}/misc/vboxnetflt.ko" "${i}/misc/vboxpci.ko"
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