VirtualBox

Changeset 58193 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Oct 12, 2015 2:57:58 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux: fix trunk-only .run installer regression - old modules were not deleted before installing.

File:
1 edited

Legend:

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

    r58186 r58193  
    364364    # script set-up.
    365365    if test "${BUILD_MODULE}" = "true"; then
     366      for i in /lib/modules/*; do
     367        if test -e "${i}/misc/vboxdrv.ko"; then
     368          rm -f "${i}/misc/vboxdrv.ko" "${i}/misc/vboxnetadp.ko" \
     369                "${i}/misc/vboxnetflt.ko" "${i}/misc/vboxpci.ko"
     370          # Remove the kernel version folder if it was empty except for us.
     371          test "`echo ${i}/misc/* ${i}/misc/.?* ${i}/* ${i}/.?*`" = \
     372               "${i}/misc/* ${i}/misc/.. ${i}/misc ${i}/.." &&
     373              rmdir "${i}/misc" "${i}"  # We used to leave empty folders.
     374        fi
     375      done
    366376      START_SERVICES=
    367377    else
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