VirtualBox

Changeset 25646 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Jan 5, 2010 9:36:37 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56354
Message:

Solaris/Installer: fixed explicit unload of USB client driver.

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/preremove.sh

    r23169 r25646  
    2020currentzone=`zonename`
    2121if test "$currentzone" = "global"; then
    22     echo "Removing VirtualBox drivers and services..."
     22    echo "Removing VirtualBox services and drivers..."
    2323    /opt/VirtualBox/vboxconfig.sh --preremove
    2424    if test "$?" -eq 0; then
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    r25644 r25646  
    193193    fi
    194194
    195     loadentry=`cat /etc/name_to_major | grep $1`
     195    # Add a space at end of module name to make sure we have a perfect match to avoid
     196    # any substring matches: e.g "vboxusb" & "vboxusbmon"
     197    loadentry=`cat /etc/name_to_major | grep "$1 "`
    196198    if test -z "$loadentry"; then
    197199        return 1
     
    210212
    211213    modname=$1
    212     # modinfo should now work properly since we prevent module autounloading
    213     loadentry=`$BIN_MODINFO | grep $modname`
     214    # modinfo should now work properly since we prevent module autounloading.
     215    loadentry=`$BIN_MODINFO | grep "$modname "`
    214216    if test -z "$loadentry"; then
    215217        return 1
     
    301303    moddesc=$2
    302304    fatal=$3
    303     modid=`$BIN_MODINFO | grep $modname | cut -f 1 -d ' ' `
     305    modid=`$BIN_MODINFO | grep "$modname " | cut -f 1 -d ' ' `
    304306    if test -n "$modid"; then
    305307        $BIN_MODUNLOAD -i $modid
     
    307309            subprint "Unloaded: $moddesc module"
    308310        else
    309             subprint "Unloading: $moddesc ...FAILED!"
     311            subprint "Unloading: $moddesc module ...FAILED!"
    310312            if test "$fatal" = "$FATALOP"; then
    311313                exit 1
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