VirtualBox

Changeset 22030 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Aug 6, 2009 12:12:15 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: vboxconfig.sh bits.

File:
1 edited

Legend:

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

    r21775 r22030  
    2929BIN_DEVFSADM=/usr/sbin/devfsadm
    3030BIN_BOOTADM=/sbin/bootadm
     31BIN_SVCADM=/usr/sbin/svcadm
     32BIN_SVCCFG=/usr/sbin/svccfg
    3133BIN_IFCONFIG=/sbin/ifconfig
    3234
     
    442444    fatal=$1
    443445
    444     # @todo halt services, remove_drivers, unpatch_files
     446    # stop and unregister webservice SMF (if present)
     447    servicefound=`svcs -a | grep "virtualbox/webservice"`
     448    if test ! -z "$servicefound"; then
     449        $BIN_SVCADM disable -s svc:/application/virtualbox/webservice:default
     450        $BIN_SVCCFG delete svc:/application/virtualbox/webservice:default
     451    fi
     452
     453    # stop and unregister zoneaccess SMF (if present)
     454    servicefound=`svcs -a | grep "virtualbox/zoneaccess"`
     455    if test ! -z "$servicefound"; then
     456        $BIN_SVCADM disable -s svc:/application/virtualbox/zoneaccess
     457        $BIN_SVCCFG delete svc:/application/virtualbox/zoneaccess
     458    fi
     459
     460    remove_drivers "$fatal"
     461    if test "$?" -eq 0; then
     462        return 0;
     463    fi
     464    return 1
    445465}
    446466
     
    458478check_bin_path $BIN_DEVFSADM
    459479check_bin_path $BIN_BOOTADM
     480check_bin_path $BIN_SVCADM
     481check_bin_path $BIN_SVCCFG
    460482check_bin_path $BIN_IFCONFIG
    461483
     
    482504esac
    483505
     506if test "$?" -eq 0; then
     507    exit 0
     508fi
     509
     510exit 1
     511
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