VirtualBox

Changeset 5859 in vbox


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.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/preinst

    r5452 r5859  
    66
    77# check for old vboxdrv modules
    8 if find /lib/modules -name vboxdrv\* 2>/dev/null|grep -q vboxdrv; then
     8if find /lib/modules -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
    99  # old modules found
    1010  db_get virtualbox-ose/delete-old-modules
     
    1313Old vboxdrv kernel modules found in
    1414EOF
    15     find /lib/modules -name vboxdrv\* 2>/dev/null|sed "s+\(.*\)+  \1+g"
     15    find /lib/modules -name "vboxdrv\.*" 2>/dev/null|sed "s+\(.*\)+  \1+g"
    1616    cat << EOF
    1717Removing of these modules denied by debconf setting
     
    2222    db_get virtualbox-ose/delete-old-modules
    2323    if [ "$RET" = "true" ]; then
    24       find /lib/modules -name vboxdrv\* 2>/dev/null|xargs rm -f 2>/dev/null
     24      find /lib/modules -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
    2525    fi
    2626  fi
  • trunk/debian/vboxdrv.init.tmpl

    r5739 r5859  
    8080running()
    8181{
    82   lsmod | grep -q $MODNAME[^_-]
     82  lsmod | grep -q "$MODNAME[^_-]"
    8383}
    8484
     
    152152  setup)
    153153    stop
     154    if find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
     155      log_action_begin_msg "Removing old VirtualBox kernel module"
     156      find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
     157      log_action_end_msg 0
     158    fi
    154159    log_daemon_msg "Recompiling VirtualBox kernel module" "$MODNAME"
    155160    if ! /usr/share/virtualbox-ose/src/build_in_tmp install > $LOG 2>&1; then
  • 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