VirtualBox

Ignore:
Timestamp:
Nov 28, 2007 9:42:07 AM (17 years ago)
Author:
vboxsync
Message:

deb/rpm/run: Remove any old kernel module of the current kernel before compiling a new one in '/etc/init.d/vboxdrv setup'. Use "vboxdrv\.*" instead of vboxdrv\* for finding them.

File:
1 edited

Legend:

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

    r5828 r5859  
    190190    . "$CONFIG"
    191191    stop
     192    if find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
     193      begin "Removing old VirtualBox kernel module "
     194      find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
     195      succ_msg
     196    fi
    192197    begin "Recompiling VirtualBox kernel module "
    193198    if ! $INSTALL_DIR/src/build_in_tmp install > /var/log/vbox-install.log 2>&1; then
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