> but this is not 100% - any other suggestions?

. /lib/functions/network.sh

if network_find_wan ucinet && network_get_device device $ucinet; then
  echo "WAN is $ucinet ($device)"
fi

-> "WAN is wan (eth1)" on a WNDR3700


~ Jow

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to