32,10 → 32,12 |
case $LAN_DOWN in |
"1") |
logger "eth0 link down" |
echo "eth0 is down" |
/bin/sed -i "s?diagnostic =.*?diagnostic = \"eth0 link down\";?g" $Index_Page |
;; |
"2") |
logger "can't contact the default router" |
echo "can't contact the default router" |
/bin/sed -i "s?diagnostic =.*?diagnostic = \"can't contact the default router\";?g" $Index_Page |
;; |
esac |
80,6 → 82,7 |
lan_down_alert |
# else switch in normal mode |
else |
echo "Internet access is OK for now" |
net_pb=`cat /etc/dnsmasq.conf|grep "address=/#/"|wc -l` |
if [ $net_pb != "0" ] |
then |