Last active
December 21, 2019 02:09
-
-
Save master-q/ff5e991c44daac24b05d04b431929868 to your computer and use it in GitHub Desktop.
日本のスターバックスのWiFiが一定時間で切断されるようになったので簡易監視を作った
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function do_network_auto_reconnect { | |
while true; do | |
ping -c1 google.com > /dev/null | |
if [ "$?" != "0" ]; then | |
sudo /etc/init.d/network-manager restart | |
sleep 30; | |
fi | |
sleep 1; | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment