qexat / reload-wifi-py

Automation script to periodically restart the NetworkManager service until a connection is established again.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reload-wifi-py

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.

Screenshot

Assumptions

  • iwgetid is available on your system (provided by wireless-tools).
  • The NetworkManager service is run under systemd, thus systemctl 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.

Installation

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 on PATH. It does the job 👍

About

Automation script to periodically restart the NetworkManager service until a connection is established again.

License:MIT License


Languages

Language:Python 100.0%