Changeset 25852 in vbox
- Timestamp:
- Jan 15, 2010 10:53:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r25646 r25852 51 51 MOD_VBOXNET=vboxnet 52 52 DESC_VBOXNET="NetAdapter" 53 MOD_VBOXNET_INST=32 53 54 54 55 MOD_VBOXFLT=vboxflt … … 532 533 fi 533 534 534 # unplumb vboxnet0 535 vboxnetup=`$BIN_IFCONFIG vboxnet0 >/dev/null 2>&1` 536 if test "$?" -eq 0; then 537 $BIN_IFCONFIG vboxnet0 unplumb 538 if test "$?" -ne 0; then 539 errorprint "VirtualBox NetAdapter 'vboxnet0' couldn't be unplumbed (probably in use)." 540 if test "$fatal" = "$FATALOP"; then 541 exit 1 542 fi 543 fi 544 fi 545 546 # unplumb vboxnet0 ipv6 547 vboxnetup=`$BIN_IFCONFIG vboxnet0 inet6 >/dev/null 2>&1` 548 if test "$?" -eq 0; then 549 $BIN_IFCONFIG vboxnet0 inet6 unplumb 550 if test "$?" -ne 0; then 551 errorprint "VirtualBox NetAdapter 'vboxnet0' IPv6 couldn't be unplumbed (probably in use)." 552 if test "$fatal" = "$FATALOP"; then 553 exit 1 554 fi 555 fi 556 fi 535 # unplumb all vboxnet instances 536 inst=0 537 while test $inst -ne $MOD_VBOXNET_INST; do 538 vboxnetup=`$BIN_IFCONFIG vboxnet$inst >/dev/null 2>&1` 539 if test "$?" -eq 0; then 540 $BIN_IFCONFIG vboxnet$inst unplumb 541 if test "$?" -ne 0; then 542 errorprint "VirtualBox NetAdapter 'vboxnet$inst' couldn't be unplumbed (probably in use)." 543 if test "$fatal" = "$FATALOP"; then 544 exit 1 545 fi 546 fi 547 fi 548 549 # unplumb vboxnet0 ipv6 550 vboxnetup=`$BIN_IFCONFIG vboxnet$inst inet6 >/dev/null 2>&1` 551 if test "$?" -eq 0; then 552 $BIN_IFCONFIG vboxnet$inst inet6 unplumb 553 if test "$?" -ne 0; then 554 errorprint "VirtualBox NetAdapter 'vboxnet$inst' IPv6 couldn't be unplumbed (probably in use)." 555 if test "$fatal" = "$FATALOP"; then 556 exit 1 557 fi 558 fi 559 fi 560 561 inst=`expr $inst + 1` 562 done 557 563 } 558 564 … … 572 578 if test -f "$nwamfile"; then 573 579 sed -e '/vboxnet/d' $nwamfile > $nwambackupfile 574 echo "vboxnet0 static 192.168.56.1" >> $nwambackupfile 580 581 # add all vboxnet instances as static to nwam 582 inst=0 583 networkn=56 584 while test $inst -ne $MOD_VBOXNET_INST; do 585 echo "vboxnet$inst static 192.168.$networkn.1" >> $nwambackupfile 586 inst=`expr $inst + 1` 587 networkn=`expr $networkn + 1` 588 done 575 589 mv -f $nwambackupfile $nwamfile 576 590 fi
Note:
See TracChangeset
for help on using the changeset viewer.