VirtualBox

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


Ignore:
Timestamp:
Jul 23, 2009 12:01:01 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: vboxconfig.sh update.

File:
1 edited

Legend:

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

    r21680 r21775  
    2929BIN_DEVFSADM=/usr/sbin/devfsadm
    3030BIN_BOOTADM=/sbin/bootadm
     31BIN_IFCONFIG=/sbin/ifconfig
    3132
    3233# "vboxdrv" is also used in sed lines here (change those as well if it ever changes)
     
    4546{
    4647    echo 1>&2 "$1"
     48}
     49
     50warnprint()
     51{
     52    echo 1>&2 "* Warning!! $1"
    4753}
    4854
     
    402408
    403409    if test "$?" -eq 0; then
    404         # nwam/dhcpagent fix
    405         nwamfile=/etc/nwam/llp
    406         nwambackupfile=$nwamfile.vbox
    407         if test -f "$nwamfile"; then
    408             sed -e '/vboxnet/d' $nwamfile > $nwambackupfile
    409             echo "vboxnet0      static 192.168.56.1" >> $nwambackupfile
    410             mv -f $nwambackupfile $nwamfile
     410
     411        if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then       
     412            # nwam/dhcpagent fix
     413            nwamfile=/etc/nwam/llp
     414            nwambackupfile=$nwamfile.vbox
     415            if test -f "$nwamfile"; then
     416                sed -e '/vboxnet/d' $nwamfile > $nwambackupfile
     417                echo "vboxnet0  static 192.168.56.1" >> $nwambackupfile
     418                mv -f $nwambackupfile $nwamfile
     419            fi
     420
     421            # plumb and configure vboxnet0
     422            $BIN_IFCONFIG vboxnet0 plumb up
     423            if test "$?" -eq 0; then
     424                $BIN_IFCONFIG vboxnet0 192.168.56.1 netmask 255.255.255.0 up
     425            else
     426                warnprint "Failed to bring up vboxnet0!!"
     427            fi
    411428        fi
    412429
     
    441458check_bin_path $BIN_DEVFSADM
    442459check_bin_path $BIN_BOOTADM
     460check_bin_path $BIN_IFCONFIG
    443461
    444462drvop=$1
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