reload-wifi-py
is a Python implementation of reload-wifi
, an automation script to periodically restart the NetworkManager
service until a connection is established again.
Important
This is NOT a cron job: this script must be run manually.
iwgetid
is available on your system (provided bywireless-tools
).- The
NetworkManager
service is run undersystemd
, thussystemctl
is available.
Note
By default, it uses sudo
, but you can configure it to use a similar tool
as long as its use is identical to the former.
The use of a virtual environment is recommended.
- Clone the repository and
cd
into the directory - Run
pip install .
A command reload-wifi
should be available to run.
Personally, I have this repository in
~/.local/share/reload-wifi-py/
, with a symlink~/.local/bin/reload-wifi
that points to the script file and~/.local/bin
onPATH
. It does the job 👍