Changeset 5848 in vbox
- Timestamp:
- Nov 27, 2007 6:46:48 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh
r5719 r5848 11 11 fi 12 12 13 # Try obtain a physical NIC that is currently active 14 phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }'` 15 if [ -z "$phys_nic" ]; then 16 # Failed to get a currently active NIC, get the first available NIC. 17 phys_nic=`/usr/sbin/dladm show-link | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'` 18 if [ -z "$phys_nic" ]; then 19 # Failed to get any NICs! 20 echo "Failed to get a physical NIC to bind to." 21 exit 1 22 fi 23 fi 13 24 vnic_id=0 14 25 vnic_name="" … … 17 28 # Create the VNIC if required 18 29 if [ -z "$2" ]; then 19 vnic_id=`/usr/lib/vna iprb0 $mac` 30 # To use a specific physical NIC, replace $phys_nic with the name of the NIC. 31 vnic_id=`/usr/lib/vna $phys_nic $mac` 20 32 if [ $? != 0 ]; then 21 33 exit 1
Note:
See TracChangeset
for help on using the changeset viewer.