From 88d970a7bcb70f849cafd28baef9785a3e26d403 Mon Sep 17 00:00:00 2001 From: Shibby Date: Fri, 16 May 2014 12:18:01 +0200 Subject: [PATCH] ethstate: fix when we have network aliases of WAN interface --- release/src/router/others/ethstate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/src/router/others/ethstate b/release/src/router/others/ethstate index 5cc22ca3e1..c70a564e96 100755 --- a/release/src/router/others/ethstate +++ b/release/src/router/others/ethstate @@ -11,7 +11,7 @@ if [ -f /tmp/ethernet.state3 ]; then fi WANMAC=`nvram get wan_hwaddr` -VWAN=`ifconfig | grep vlan | grep "$WANMAC" | awk '{print $1}'` +VWAN=`ifconfig | grep vlan | grep "$WANMAC" | awk '{print $1}' | grep -v ":"` VPORT=`nvram get $VWAN'ports' | awk '{print $1}' | sed 's/[^0-9]*//g'` if [ -z "$VPORT" ]; then VPORT="0" -- 2.11.4.GIT