diff options
| author | st33v <github@f3rr3t.com> | 2017-11-19 20:06:45 +1100 |
|---|---|---|
| committer | st33v <github@f3rr3t.com> | 2017-11-19 20:06:45 +1100 |
| commit | 35f98ffb379b021592ce0c2065c2e60d398f77f8 (patch) | |
| tree | ec1a09030dda2c533c732e765dbbcc1d5d53c2c2 | |
| parent | d92ab0027c1dc0e79c87962cfa01063d6f394e62 (diff) | |
logging everything
| -rwxr-xr-x | wlanWDprowl.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wlanWDprowl.sh b/wlanWDprowl.sh index 341b932..8bc2c70 100755 --- a/wlanWDprowl.sh +++ b/wlanWDprowl.sh @@ -21,11 +21,12 @@ wirelessLink=$(networkctl | awk '/wlan/ {print $2}') # Prowl: # Detect the state of the wireless network adaptor wlanStatus=$(networkctl status ${wirelessLink} | awk '/State:/ {print $2}') -# echo ${wlanStatus} +logline="$(date) ${wlanStatus}" +# write all to log for now. This will show if I'm still alive. +echo ${logline} if [ ${wlanStatus} != "routable" ]; then # we have lost wireless, so log the occurrence and restart the service - logline="$(date) ${wlanStatus}" echo ${logline} >> ${logdir}/wlanStatus.log sudo systemctl restart systemd-networkd.service fi |
