Skip to content

Instantly share code, notes, and snippets.

@master-q
Last active December 21, 2019 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save master-q/ff5e991c44daac24b05d04b431929868 to your computer and use it in GitHub Desktop.
Save master-q/ff5e991c44daac24b05d04b431929868 to your computer and use it in GitHub Desktop.
日本のスターバックスのWiFiが一定時間で切断されるようになったので簡易監視を作った
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