Bash
Delphi
code posted
created at 25 Nov 17:56, updated at 09 Dec 14:45
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Settings: # Where and what you want to call the Lockfile lockfile='/var/run/WiFi_Check.pid' # Which Interface do you want to check/fix wlan='wlan0' # Isolate the intended gateway IP address from /etc/network/interfaces pingip=`cat /etc/network/interfaces | awk '/gateway/ { print $2; exit; }'` ################################################################## echo echo "Starting Wi-Fi check on interface \"$wlan\"." date echo |
446 Bytes in 2 ms with coderay