Changeset 11067 in vbox for trunk/src/VBox/Devices/Network/solaris
- Timestamp:
- Aug 1, 2008 4:09:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh
r10222 r11067 36 36 if [ $snv_num -le 82 ]; then 37 37 phys_nic=`/usr/sbin/dladm show-dev -p | /usr/bin/awk 'NF==4 && $2=="link=up" { print $1 }'` 38 elif [ $snv_num -le 95 ]; then 39 phys_field=`/usr/sbin/dladm show-link -p | /usr/bin/awk 'NF==5 && $4=="STATE=\"up\"" { print $1 }'` 40 eval $phys_field 41 phys_nic="$LINK" 38 42 else 39 phys_field=`/usr/sbin/dladm show-link -p | /usr/bin/awk 'NF==5 && $4=="STATE=\"up\"" { print $1}'`43 phys_field=`/usr/sbin/dladm show-link -p -o link,state | /usr/bin/awk 'BEGIN{FS=":"} /up/ {print $1}'` 40 44 eval $phys_field 41 45 phys_nic="$LINK" … … 46 50 if [ $snv_num -le 82 ]; then 47 51 phys_nic=`/usr/sbin/dladm show-link -p | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'` 48 el se52 elif [ $snv_num -le 95 ]; then 49 53 phys_field=`/usr/sbin/dladm show-link -p | /usr/bin/awk 'NF==5 && $2=="CLASS=\"phys\"" { print $1 }'` 50 54 eval $phys_field 51 55 phys_nic="$LINK" 56 else 57 phys_field=`/usr/sbin/dladm show-link -p -o link,class | /usr/bin/awk 'BEGIN{FS=":"} /up/ {print $1}'` 58 eval $phys_field 59 phys_nic="$LINK" 52 60 fi 53 61 if [ -z "$phys_nic" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.