Ticket #1196: vnic_setup.sh.patch
| File vnic_setup.sh.patch, 577 bytes (added by , 17 years ago) |
|---|
-
/opt/VirtualBox/vnic_setup.sh
old new 22 22 fi 23 23 24 24 # Try obtain a physical NIC that is currently active 25 phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }' `25 phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }' | head -1` 26 26 if [ -z "$phys_nic" ]; then 27 27 # Failed to get a currently active NIC, get the first available NIC. 28 28 phys_nic=`/usr/sbin/dladm show-link | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'`

