blob: e2fc3d37c03e0a24bbcb43052f8a81fe36771d96 [file] [log] [blame]
iface="$1"
uplink=0
if [ "$iface" = wan0 ] || [ "$iface" = wan0.2 ]; then
uplink=1
fi
ip link set dev "$iface" up
if [ "$uplink" = 1 ]; then
if [ -z "$(ip -o -4 addr show $iface)" ]; then
run-dhclient "$iface"
else
# dhclient would do this if we had run it
upload-logs-now
fi
fi