| 6 | | [ "${PORT}" == "wan" -a "${RESOLVED}" == "1" ] && { |
| 7 | | M=`uci get fon.wan.mode` |
| 8 | | [ "$M" != "umts" -a "$M" != "wifi" ] && { |
| 9 | | [ -f "/tmp/run/fonstate.pid" ] && |
| 10 | | fs -l SwitchWanUp || /etc/fonstated/SwitchWanUp |
| 11 | | } |
| | 6 | M=`uci get fon.wan.mode` |
| | 7 | [ "$M" != "umts" -a "$M" != "wifi" ] && { |
| | 8 | [ "${PORT}" == "wan" -a "${RESOLVED}" == "1" ] && { |
| | 9 | [ -f "/tmp/run/fonstate.pid" ] && |
| | 10 | fs -l SwitchWanUp || /etc/fonstated/SwitchWanUp |
| | 11 | } |
| | 12 | |
| | 13 | [ "${PORT}" == "wan" -a "${RESOLVED}" == "0" ] && { |
| | 14 | [ -f "/tmp/run/fonstate.pid" ] && |
| | 15 | fs -l SwitchWanDown || /etc/fonstated/SwitchWanDown |
| | 16 | } |