VirtualBox

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


Ignore:
Timestamp:
Jun 9, 2009 9:31:26 AM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: fixed and tested ips/pkg(5) post install.

File:
1 edited

Legend:

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

    r20309 r20420  
    3333        if test ! -z "$found"; then
    3434            echo "## Failed to find a suitable user id binary."
     35            exit 1
    3536        else
    3637            idbin=$found
     
    4041    if test `$idbin -u` -ne 0; then
    4142        echo "## This script must be run with administrator privileges."
     43        exit 2
    4244    fi
    4345}
     
    4850    if test "$currentzone" != "global"; then
    4951        echo "## This script must be run from the global zone."
     52        exit 3
    5053    fi
    5154}
     
    7073# just updated various boot archive files without really loading
    7174# them... But we _want_ them to be loaded.
    72 echo "Removing any stale driver configurations..."
     75echo "Removing stale driver configurations..."
    7376
    7477$BIN_REMDRV vboxflt > /dev/null 2>&1
     
    9194    /usr/sbin/devfsadm -i vboxdrv
    9295
    93     echo "HostDrv    : SUCCESS"
    94 
    9596    # Load VBoxNetAdapter vboxnet
    9697    if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then
     
    99100
    100101        if test "$rc" -eq 0; then
    101             echo "NetAdapter : SUCCESS"
    102 
    103102            # nwam/dhcpagent fix
    104103            nwamfile=/etc/nwam/llp
     
    108107                echo "vboxnet0  static 192.168.56.1" >> $nwambackupfile
    109108                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"
    111110            fi
    112         else
    113             echo "NetAdapter : FAILED"
    114111        fi
    115112    fi
     
    119116        /opt/VirtualBox/vboxdrv.sh fltstart
    120117        rc=$?
    121         if test "$rc" -eq 0; then
    122             echo "NetFilter  : SUCCESS"
    123         else
    124             echo "NetFilter  : FAILED"
    125         fi
    126118    fi
    127119
     
    138130
    139131            /usr/sbin/devfsadm -i vboxusbmon
    140 
    141             echo "USBMonitor : SUCCESS"
    142         else
    143             echo "USBMonitor : FAILED"
    144132        fi
    145133    fi
    146 else
    147     echo "HostDrv    : FAILED"
    148134fi
    149135
    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...)
     137if 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
    154151fi
    155152
     
    157154if test -f "/usr/share/applications/virtualbox.desktop"; then
    158155    touch /usr/share/applications/virtualbox.desktop
     156    echo "Added VirtualBox shortcut menu item."
    159157fi
    160158
     
    163161    PYTHONBIN=`which python`
    164162    if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then
    165         echo "Installing Python bindings..."
     163        echo "Installing python bindings..."
    166164
    167165        VBOX_INSTALL_PATH=/opt/VirtualBox
     
    169167        cd /opt/VirtualBox/sdk/installer
    170168        $PYTHONBIN ./vboxapisetup.py install > /dev/null
     169        echo "Done."
    171170    else
    172171        echo "** WARNING! Python not found, skipped installed Python bindings."
     
    184183
    185184echo "Done."
    186 
     185if test "$rc" -eq 0; then
     186    echo "Post install successfully completed."
     187else
     188    echo "Post install completed but with some errors."
     189fi
    187190exit 0
    188191
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