Working sound setup for raspis
This commit is contained in:
10
roles/pi-standard-setup/files/wifi-watchdog.sh
Normal file
10
roles/pi-standard-setup/files/wifi-watchdog.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if /sbin/ifconfig wlan0 | /bin/grep -q "inet addr:" ; then
|
||||
logger "Tested Inet connection - everything ok"
|
||||
echo "Tested Inet connection - everything ok"
|
||||
else
|
||||
logger "Network connection down! Attempting reconnection."
|
||||
echo "Network connection down! Attempting reconnection."
|
||||
/sbin/ifup --force wlan0
|
||||
fi
|
||||
Reference in New Issue
Block a user