https://github.com/dmowcomber/wifi_restarter
A script to restart wifi if the internet is unreachable
https://github.com/dmowcomber/wifi_restarter
Last synced: about 1 year ago
JSON representation
A script to restart wifi if the internet is unreachable
- Host: GitHub
- URL: https://github.com/dmowcomber/wifi_restarter
- Owner: dmowcomber
- Created: 2017-11-05T16:23:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T19:21:09.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T23:31:34.238Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wifi_restarter
A script to restart wifi if the internet is unreachable
### copy the script to /usr/local/bin
```bash
sudo cp wifi_restarter.sh /usr/local/bin
```
### add the following line to the end of /ect/crontab to run the script every 5 minutes
```bash
sudo vi /etc/crontab
```
> */5 * * * * root /usr/local/bin/wifi_restarter.sh
### view logs
```
grep wifi_restarter.sh /var/log/messages
# or
tail -f /var/log/messages | grep wifi_restarter.sh
```