VirtualBox

Ticket #1196: vnic_setup.sh.patch

File vnic_setup.sh.patch, 577 bytes (added by Jens Elkner, 17 years ago)

patch

  • /opt/VirtualBox/vnic_setup.sh

    old new  
    2222fi
    2323
    2424# 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 }'`
     25phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }' | head -1`
    2626if [ -z "$phys_nic" ]; then
    2727    # Failed to get a currently active NIC, get the first available NIC.
    2828    phys_nic=`/usr/sbin/dladm show-link | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'`

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy