Changeset 20420 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jun 9, 2009 9:31:26 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/ipsinstall.sh
r20309 r20420 33 33 if test ! -z "$found"; then 34 34 echo "## Failed to find a suitable user id binary." 35 exit 1 35 36 else 36 37 idbin=$found … … 40 41 if test `$idbin -u` -ne 0; then 41 42 echo "## This script must be run with administrator privileges." 43 exit 2 42 44 fi 43 45 } … … 48 50 if test "$currentzone" != "global"; then 49 51 echo "## This script must be run from the global zone." 52 exit 3 50 53 fi 51 54 } … … 70 73 # just updated various boot archive files without really loading 71 74 # them... But we _want_ them to be loaded. 72 echo "Removing anystale driver configurations..."75 echo "Removing stale driver configurations..." 73 76 74 77 $BIN_REMDRV vboxflt > /dev/null 2>&1 … … 91 94 /usr/sbin/devfsadm -i vboxdrv 92 95 93 echo "HostDrv : SUCCESS"94 95 96 # Load VBoxNetAdapter vboxnet 96 97 if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then … … 99 100 100 101 if test "$rc" -eq 0; then 101 echo "NetAdapter : SUCCESS"102 103 102 # nwam/dhcpagent fix 104 103 nwamfile=/etc/nwam/llp … … 108 107 echo "vboxnet0 static 192.168.56.1" >> $nwambackupfile 109 108 mv -f $nwambackupfile $nwamfile 110 echo " -> patched /etc/nwam/llp to use static IP for vboxnet0"109 echo " -> patched /etc/nwam/llp to use static IP for vboxnet0" 111 110 fi 112 else113 echo "NetAdapter : FAILED"114 111 fi 115 112 fi … … 119 116 /opt/VirtualBox/vboxdrv.sh fltstart 120 117 rc=$? 121 if test "$rc" -eq 0; then122 echo "NetFilter : SUCCESS"123 else124 echo "NetFilter : FAILED"125 fi126 118 fi 127 119 … … 138 130 139 131 /usr/sbin/devfsadm -i vboxusbmon 140 141 echo "USBMonitor : SUCCESS"142 else143 echo "USBMonitor : FAILED"144 132 fi 145 133 fi 146 else147 echo "HostDrv : FAILED"148 134 fi 149 135 150 # Enable Zone access service 151 if test -f /var/svc/manifest/application/virtualbox/zoneaccess.xml; then 152 /usr/sbin/svcadm enable -s svc:/application/virtualbox/zoneaccess 153 echo "Service to use VirtualBox from zones : ENABLED" 136 # Enable Zone access service (note IPS auto-prefixes "virtualbox-" to the filename...) 137 if test -f "/var/svc/manifest/application/virtualbox/virtualbox-zoneaccess.xml"; then 138 /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/virtualbox-zoneaccess.xml 139 rc=$? 140 if test "$rc" -eq 0; then 141 /usr/sbin/svcadm enable -s svc:/application/virtualbox/zoneaccess 142 rc=$? 143 if test "$rc" -eq 0; then 144 echo "Enabled VirtualBox zone service." 145 else 146 echo "## Failed to enable VirtualBox zone service." 147 fi 148 else 149 echo "## Failed to import VirtualBox zone service." 150 fi 154 151 fi 155 152 … … 157 154 if test -f "/usr/share/applications/virtualbox.desktop"; then 158 155 touch /usr/share/applications/virtualbox.desktop 156 echo "Added VirtualBox shortcut menu item." 159 157 fi 160 158 … … 163 161 PYTHONBIN=`which python` 164 162 if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then 165 echo "Installing Python bindings..."163 echo "Installing python bindings..." 166 164 167 165 VBOX_INSTALL_PATH=/opt/VirtualBox … … 169 167 cd /opt/VirtualBox/sdk/installer 170 168 $PYTHONBIN ./vboxapisetup.py install > /dev/null 169 echo "Done." 171 170 else 172 171 echo "** WARNING! Python not found, skipped installed Python bindings." … … 184 183 185 184 echo "Done." 186 185 if test "$rc" -eq 0; then 186 echo "Post install successfully completed." 187 else 188 echo "Post install completed but with some errors." 189 fi 187 190 exit 0 188 191
Note:
See TracChangeset
for help on using the changeset viewer.