VirtualBox

Ignore:
Timestamp:
Jul 30, 2012 4:18:56 PM (12 years ago)
Author:
vboxsync
Message:

Additions/solaris/installer: automatically load vboxms module.

File:
1 edited

Legend:

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

    r40193 r42458  
    3232MODNAME="vboxguest"
    3333VFSMODNAME="vboxfs"
     34VMSMODNAME="vboxms"
    3435MODDIR32="/usr/kernel/drv"
    3536MODDIR64="/usr/kernel/drv/amd64"
     
    8586{
    8687    module_loaded $VFSMODNAME
     88    return $?
     89}
     90
     91vboxms_loaded()
     92{
     93    module_loaded $VMSMODNAME
    8794    return $?
    8895}
     
    149156}
    150157
     158start_vboxms()
     159{
     160    /usr/sbin/add_drv -m'* 0666 root sys' $VMSMODNAME
     161    if test ! vboxms_loaded; then
     162        abort "Failed to load VirtualBox pointer integration module."
     163    elif test -c "/devices/pseudo/$VMSMODNAME@0:$VMSMODNAME"; then
     164        info "VirtualBox pointer integration module loaded."
     165    else
     166        abort "Aborting due to attach failure."
     167    fi
     168}
     169
     170stop_vboxms()
     171{
     172    if vboxms_loaded; then
     173        /usr/sbin/rem_drv $VMSMODNAME || abort "Failed to unload VirtualBox pointer integration module."
     174        info "VirtualBox pointer integration module unloaded."
     175    elif test -z "$SILENTUNLOAD"; then
     176        info "VirtualBox pointer integration module not loaded."
     177    fi
     178}
     179
    151180status_module()
    152181{
     
    160189stop_all()
    161190{
     191    stop_vboxms
    162192    stop_vboxfs
    163193    stop_module
     
    170200    start_module
    171201    start_vboxfs
     202    start_vboxms
    172203    return 0
    173204}
     
    189220start)
    190221    start_module
     222    start_vboxms
    191223    ;;
    192224stop)
     225    stop_vboxms
    193226    stop_module
    194227    ;;
     
    201234vfsstop)
    202235    stop_vboxfs
     236    ;;
     237vmsstart)
     238    start_vboxms
     239    ;;
     240vmsstop)
     241    stop_vboxms
    203242    ;;
    204243*)
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