dut: Make it easier to use different port when upgrading.

Some systems might be using trunked VLAN ports, and so in that
case 'eth1' cannot get DHCP address.
This commit is contained in:
Ben Greear
2018-11-20 11:30:26 -08:00
parent 76291c74ad
commit 785e8da48b

View File

@@ -6,6 +6,9 @@
LFVER=5.3.8 LFVER=5.3.8
KVER=4.16.18+ KVER=4.16.18+
DEV=eth1
# Use this or similar device if eth1 and eth2 are configured for trunked VLAN configuration.
#DEV=eth2.2002
# Echo the commands to stdout for debugging purposes. # Echo the commands to stdout for debugging purposes.
set -x set -x
@@ -23,12 +26,12 @@ ip route del 0.0.0.0/0 dev eth0
rmmod ath10k_pci rmmod ath10k_pci
rmmod ath9k rmmod ath9k
# Assume eth1 is connected to a network that can route to internet # Assume eth1 ($DEV) is connected to a network that can route to internet
ifconfig eth1 down ifconfig $DEV down
pkill -f "dhclient eth1" pkill -f "dhclient $DEV"
ifconfig eth1 up ifconfig $DEV up
dhclient eth1 dhclient $DEV
curl -o lf_kinstall.pl http://www.candelatech.com/lf_kinstall.txt || exit 1 curl -o lf_kinstall.pl http://www.candelatech.com/lf_kinstall.txt || exit 1
chmod a+x lf_kinstall.pl chmod a+x lf_kinstall.pl