Changeset 22061 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Aug 7, 2009 12:00:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/checkinstall.sh
r20919 r22061 23 23 abort_error() 24 24 { 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." 29 26 exit 1 30 27 } 28 31 29 32 30 # Check if VBoxSVC is currently running … … 38 36 39 37 # 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"; then38 servicefound=`svcs -H "svc:/application/virtualbox/zoneaccess" 2> /dev/null | grep '^online'` 39 if test ! -z "$servicefound"; then 42 40 echo "## VirtualBox's zone access service appears to still be running." 43 41 echo "## Halting & removing zone access service..." 44 42 /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 44 fi 45 46 # Check if the Web service is running, if so stop & remove it 47 servicefound=`svcs -H "svc:/application/virtualbox/webservice" 2> /dev/null | grep '^online'` 48 if 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 53 fi 54 55 # Check if vboxnet is still plumbed, if so try unplumb it 56 BIN_IFCONFIG=`which ifconfig 2> /dev/null` 57 if 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 46 68 fi 47 69
Note:
See TracChangeset
for help on using the changeset viewer.