From d08c167a4f95dff31052f741c146fea475ae504f Mon Sep 17 00:00:00 2001 From: petrklus Date: Thu, 1 May 2014 23:20:37 +0200 Subject: [PATCH] Update WiFi_Check Added full path - did not work through root crontab without this --- WiFi_Check | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WiFi_Check b/WiFi_Check index 9de6f91..d3fcc64 100644 --- a/WiFi_Check +++ b/WiFi_Check @@ -62,19 +62,19 @@ echo $$ > $lockfile # We can perform check echo "Performing Network check for $wlan" -if ifconfig $wlan | grep -q "inet addr:" ; then +if /sbin/ifconfig $wlan | grep -q "inet addr:" ; then echo "Network is Okay" else echo "Network connection down! Attempting reconnection." - ifdown $wlan + /sbin/ifdown $wlan sleep 5 - ifup --force $wlan - ifconfig $wlan | grep "inet addr" + /sbin/ifup --force $wlan + /sbin/ifconfig $wlan | grep "inet addr" fi echo echo "Current Setting:" -ifconfig $wlan | grep "inet addr:" +/sbin/ifconfig $wlan | grep "inet addr:" echo # Check is complete, Remove Lock file and exit