Changeset 21775 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jul 23, 2009 12:01:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r21680 r21775 29 29 BIN_DEVFSADM=/usr/sbin/devfsadm 30 30 BIN_BOOTADM=/sbin/bootadm 31 BIN_IFCONFIG=/sbin/ifconfig 31 32 32 33 # "vboxdrv" is also used in sed lines here (change those as well if it ever changes) … … 45 46 { 46 47 echo 1>&2 "$1" 48 } 49 50 warnprint() 51 { 52 echo 1>&2 "* Warning!! $1" 47 53 } 48 54 … … 402 408 403 409 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 411 428 fi 412 429 … … 441 458 check_bin_path $BIN_DEVFSADM 442 459 check_bin_path $BIN_BOOTADM 460 check_bin_path $BIN_IFCONFIG 443 461 444 462 drvop=$1
Note:
See TracChangeset
for help on using the changeset viewer.