VirtualBox

Changeset 8892 in vbox


Ignore:
Timestamp:
May 16, 2008 12:47:15 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30927
Message:

Solaris hostif: Added awk check for changed dladm in OpenSolaris2008.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh

    r8555 r8892  
    3232    phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }'`
    3333    if [ -z "$phys_nic" ]; then
     34        # Try obtain a physical NIC that is currently active
     35        phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==4 && $2=="up" { print $1 }'`
    3436        # Failed to get a currently active NIC, get the first available NIC.
    3537        phys_nic=`/usr/sbin/dladm show-link | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'`
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