VirtualBox

Ignore:
Timestamp:
Nov 7, 2011 4:08:07 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74741
Message:

Additions/solaris/Installer: fix for unloading vboxfs module.

File:
1 edited

Legend:

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

    r33656 r39219  
    5757module_loaded()
    5858{
    59     if test -f "/etc/name_to_major"; then
    60         loadentry=`cat /etc/name_to_major | grep "$1 "`
    61     else
    62         loadentry=`/usr/sbin/modinfo | grep "$1 "`
    63     fi
     59    if test -z "$1"; then
     60        abort "missing argument to module_loaded()"
     61    fi
     62
     63    modname=$1
     64    # modinfo should now work properly since we prevent module autounloading.
     65    loadentry=`/usr/sbin/modinfo | grep "$modname "`
    6466    if test -z "$loadentry"; then
    6567        return 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