VirtualBox

Changeset 5861

Show
Ignore:
Timestamp:
11/28/07 14:21:30 (9 months ago)
Author:
vboxsync
Message:

deb/rpm: Explicitely stop the kernel module before starting the new installed one. Although the deinstaller stops the module itself the user might have loaded a self-brewn module manually.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/debian/changelog

    r5860 r5861  
    1 virtualbox-ose (1.5.51+svn+OSE-1) unstable; urgency=low 
     1virtualbox-ose (1.5.51~svn-1) unstable; urgency=low 
    22 
    33  * rebuild Debian package 
  • trunk/debian/postinst

    r5773 r5861  
    7070fi 
    7171 
     72# There might be an old module active (e.g. manually loaded) 
     73if lsmod | grep -q "vboxdrv[^_-]"; then 
     74  /etc/init.d/vboxdrv stop || true 
     75fi 
     76 
    7277#DEBHELPER# 
    7378 
  • trunk/debian/vboxdrv.init.tmpl

    r5859 r5861  
    129129  killall -q VBoxSVC 
    130130  if running; then 
    131     if ! rmmod $MODNAME; then 
     131    if ! rmmod $MODNAME 2>/dev/null; then 
    132132      failure "Cannot unload module $MODNAME." 
    133133    fi 
  • trunk/src/VBox/Installer/linux/vboxdrv.sh

    r5859 r5861  
    175175    begin "Stopping VirtualBox kernel module " 
    176176    if running; then 
    177         rmmod $modname || fail "Cannot unload module $modname" 
     177        rmmod $modname 2>/dev/null || fail "Cannot unload module $modname" 
    178178        rm -f $dev || fail "Cannot unlink $dev" 
    179179    fi 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy