An open API service indexing awesome lists of open source software.

https://github.com/dmowcomber/wifi_restarter

A script to restart wifi if the internet is unreachable
https://github.com/dmowcomber/wifi_restarter

Last synced: 2 months ago
JSON representation

A script to restart wifi if the internet is unreachable

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
```