mirror of
https://github.com/0x1d/pifi.git
synced 2025-12-15 18:58:21 +01:00
initial commit
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# PiFi
|
||||
|
||||
This is a simple tool to create and manage a hotspot on a Raspberry Pi (ARM64).
|
||||
The code is based on https://github.com/NetworkManager/NetworkManager/blob/main/examples/python/dbus/wifi-hotspot.py
|
||||
and adds following features:
|
||||
|
||||
- Environment variables or intput parameters for SSID and password
|
||||
- Option to remove the connection
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
make build
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
sudo ./pifi wlan0 up "My Hotspot" "my password"
|
||||
sudo ./pifi wlan0 down
|
||||
sudo ./pifi wlan0 remove
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
|
||||
The hotspot will use the environment variables `WIFI_SSID` and `WIFI_PASSWORD` if they are set.
|
||||
|
||||
```bash
|
||||
export WIFI_SSID="My Hotspot"
|
||||
export WIFI_PASSWORD="my password"
|
||||
|
||||
sudo -E ./pifi wlan0 up
|
||||
```
|
||||
Reference in New Issue
Block a user