- Timestamp:
- Jul 18, 2017 2:21:17 PM (8 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/prerm-common.sh
r62678 r68027 30 30 # error). 31 31 32 OLDMODULES="vboxdrv vboxnetflt vboxnetadp vboxpci"33 32 34 33 # The below is GNU-specific. See VBox.sh for the longer Solaris/OS X version. … … 68 67 remove_init_script vboxnet >/dev/null 2>&1 69 68 rm -f /sbin/vboxconfig 70 # Remove any generated modules71 if [ -z "$VBOX_DONT_REMOVE_OLD_MODULES" ]; then72 for i in ${OLDMODULES}; do73 # Remove old modules.74 rm -f /lib/modules/*/misc/"${i}"*75 # This second is no longer used. Remove the line some time.76 rm -f /lib/modules/*/kernel/misc/"${i}"*77 done78 # Remove leftover module folders.79 for i in /lib/modules/*/misc; do80 test -d "${i}" && rmdir -p "${i}" 2>/dev/null81 done82 fi83 69 exit 0 -
trunk/src/VBox/Installer/linux/vboxdrv.sh
r65403 r68027 284 284 chown root:vboxusers /dev/vboxusb 2>/dev/null 285 285 fi 286 # Remove any kernel modules left over from previously installed kernels. 287 cleanup only_old 286 288 succ_msg "VirtualBox services started" 287 289 } … … 366 368 cleanup() 367 369 { 370 # If this is set, only remove kernel modules for no longer installed 371 # kernels. Note that only generated kernel modules should be placed 372 # in /lib/modules/*/misc. Anything that we should not remove automatically 373 # should go elsewhere. 374 only_old="${1}" 368 375 for i in /lib/modules/*; do 376 # Check whether we are only cleaning up for uninstalled kernels. 377 test -n "${only_old}" && test -e "${i}/kernel/drivers" && continue 369 378 # We could just do "rm -f", but we only want to try deleting folders if 370 379 # we are sure they were ours, i.e. they had our modules in beforehand.
Note:
See TracChangeset
for help on using the changeset viewer.