https://github.com/mohido/wifi-prioritizer
A simple wifi prioritizer script. Used to scan the wifi every minute and connect to the priority wifi
https://github.com/mohido/wifi-prioritizer
Last synced: 4 months ago
JSON representation
A simple wifi prioritizer script. Used to scan the wifi every minute and connect to the priority wifi
- Host: GitHub
- URL: https://github.com/mohido/wifi-prioritizer
- Owner: Mohido
- License: mit
- Created: 2023-11-07T16:38:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-07T17:11:54.000Z (over 1 year ago)
- Last Synced: 2024-12-31T16:14:17.753Z (6 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WiFi-Prioritizer
A simple WiFi prioritizer script for Rocky Linux. It scans the wifi every minute and connect to the prioritised WiFi. Note, this is very unsecure for production levels. Use with caution!# Configuration Files
Make sure to create `/etc/wifi-priorities.conf` file and write the wifi names that you would love to connect with. The order defines the priority of the wifi connection>> /etc/wifi-priorities.conf
```
MyFirstWifi
MySecondWIfi
```If the device is connected to the first wifi, it won't reconnect. If the devices is connected to the second wifi, it will connect to the first wifi incase it exists.
# Enabling Upon Boot
1) Copy the `wifi-prioritizerd.service` file to `/etc/systemd/system/` directory.
2) Copy the `wifi-prioritizerd` file to `/sbin/` directory
3) Change the `wifi-prioritizerd` privilages if needed (`chmod 755 wifi-prioritizerd`).
4) Reload systemd services scripts using `systemctl daemon-reload`
5) Enable the `wifi-prioritizerd` service by using `systemctl enable wifi-prioritizerd.service`
6) Start the service using `systemctl start wifi-prioritizerd`# Notes
* Make sure that the `/etc/wifi-priorities.conf` file exist in your filesystm.
* Logs for the service can be found at `/var/log/wifi-prioritizerd.log`
* This script has been tested on Arm64 Rocky linux (on raspberry pi).