VirtualBox

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


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

Solaris/Installer: make checkinstall halt webservice, unplumb vboxnet.

File:
1 edited

Legend:

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

    r20919 r22061  
    2323abort_error()
    2424{
    25     echo "## To fix this:"
    26     echo "## 1. Close VirtualBox and all virtual machines completely."
    27     echo "## 2. Uninstall VirtualBox (SUNWvbox) and kernel package (SUNWvboxkern) in this order."
    28     echo "## 3. Re-run this installer."
     25    echo "## Please close all VirtualBox processes and re-run this installer."
    2926    exit 1
    3027}
     28
    3129
    3230# Check if VBoxSVC is currently running
     
    3836
    3937# Check if the Zone Access service is holding open vboxdrv, if so stop & remove it
    40 zoneaccessfound=`svcs -H "svc:/application/virtualbox/zoneaccess" 2> /dev/null | grep '^online'`
    41 if test ! -z "$zoneaccessfound"; then
     38servicefound=`svcs -H "svc:/application/virtualbox/zoneaccess" 2> /dev/null | grep '^online'`
     39if test ! -z "$servicefound"; then
    4240    echo "## VirtualBox's zone access service appears to still be running."
    4341    echo "## Halting & removing zone access service..."
    4442    /usr/sbin/svcadm disable -s svc:/application/virtualbox/zoneaccess
    45     /usr/sbin/svccfg delete svc:/application/virtualbox/zoneaccess   
     43    /usr/sbin/svccfg delete svc:/application/virtualbox/zoneaccess
     44fi
     45
     46# Check if the Web service is running, if so stop & remove it
     47servicefound=`svcs -H "svc:/application/virtualbox/webservice" 2> /dev/null | grep '^online'`
     48if test ! -z "$servicefound"; then
     49    echo "## VirtualBox web service appears to still be running."
     50    echo "## Halting & removing webservice..."
     51    /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice
     52    /usr/sbin/svccfg delete svc:/application/virtualbox/webservice
     53fi
     54
     55# Check if vboxnet is still plumbed, if so try unplumb it
     56BIN_IFCONFIG=`which ifconfig 2> /dev/null`
     57if test -x "$BIN_IFCONFIG"; then
     58    vboxnetup=`$BIN_IFCONFIG vboxnet0 >/dev/null 2>&1`
     59    if test "$?" -eq 0; then
     60        echo "## VirtualBox NetAdapter is still plumbed"
     61        echo "## Try to remove old NetAdapter..."
     62        $BIN_IFCONFIG vboxnet0 unplumb
     63        if test "$?" -ne 0; then
     64            echo "## VirtualBox NetAdapter 'vboxnet0' couldn't be unplumbed (probably in use)."
     65            abort_error
     66        fi
     67    fi
    4668fi
    4769
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