added wifi_drop.sh
This commit is contained in:
14
bin/wifi_drop.sh
Executable file
14
bin/wifi_drop.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
while true ; do
|
||||
if ifconfig wlan0 | grep -q "inet addr:" ; then
|
||||
sleep 60
|
||||
else
|
||||
echo "Network connection down! Attempting reconnection."
|
||||
ifdown --force wlan0
|
||||
sleep 10
|
||||
ifup --force wlan0
|
||||
sleep 10
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user