|
@ -74,6 +74,7 @@ interfaces() |
|
|
|
|
|
|
|
|
check_iface_status() |
|
|
check_iface_status() |
|
|
{ |
|
|
{ |
|
|
|
|
|
let iface_id++ |
|
|
device=$(uci get -p /var/state network.$1.ifname) &> /dev/null |
|
|
device=$(uci get -p /var/state network.$1.ifname) &> /dev/null |
|
|
|
|
|
|
|
|
if [ -z "$device" ]; then |
|
|
if [ -z "$device" ]; then |
|
@ -82,7 +83,6 @@ interfaces() |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
config_get enabled "$1" enabled 0 |
|
|
config_get enabled "$1" enabled 0 |
|
|
let iface_id++ |
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$(ps -w | grep mwan3track | grep -v grep | sed '/.*\/usr\/sbin\/mwan3track \([^ ]*\) .*$/!d;s//\1/' | awk '$1 == "'$1'"')" ]; then |
|
|
if [ -n "$(ps -w | grep mwan3track | grep -v grep | sed '/.*\/usr\/sbin\/mwan3track \([^ ]*\) .*$/!d;s//\1/' | awk '$1 == "'$1'"')" ]; then |
|
|
tracking="active" |
|
|
tracking="active" |
|
|