VirtualBox

Changeset 8102 in vbox


Ignore:
Timestamp:
Apr 17, 2008 2:29:43 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29803
Message:

Unload VBoxUSB.kext before reloading VBoxDrv.kext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/load.sh

    r8092 r8102  
    4141fi
    4242
    43 trap "sudo chown -R `whoami` $DIR; exit 1" INT
     43# Make sure VBoxUSB is unloaded as it might be using symbols from us.
     44LOADED=`kextstat -b org.virtualbox.kext.VBoxUSB -l`
     45if test -n "$LOADED"; then
     46    echo "load.sh: Unloading org.virtualbox.kext.VBoxUSB..."
     47    sudo kextunload -v 6 -b org.virtualbox.kext.VBoxUSB
     48    LOADED=`kextstat -b org.virtualbox.kext.VBoxUSB -l`
     49    if test -n "$LOADED"; then
     50        echo "load.sh: failed to unload org.virtualbox.kext.VBoxUSB, see above..."
     51        exit 1;
     52    fi
     53    echo "load.sh: Successfully unloaded org.virtualbox.kext.VBoxUSB"
     54fi
    4455
    4556# Try unload any existing instance first.
     
    5768
    5869set -e
     70trap "sudo chown -R `whoami` $DIR; exit 1" INT
    5971# On smbfs, this might succeed just fine but make no actual changes,
    6072# so we might have to temporarily copy the driver to a local directory.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette