Update check_wan4.sh
This commit is contained in:
@@ -6,10 +6,8 @@ while true; do
|
||||
network_get_gateway NET_GW "${NET_IF}"
|
||||
|
||||
r=`ping -c1 "${NET_GW}" 2>&1`
|
||||
#r=`echo $r | grep permitted`
|
||||
case $r in
|
||||
*permitted* ) /etc/init.d/firewall restart ;;
|
||||
esac
|
||||
# /etc/init.d/firewall restart
|
||||
sleep 2
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user