diff --git a/Makefile b/Makefile index edb1b77..836e12f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ build: - env GOOS=linux GOARCH=arm64 go build -o pifi main.go + env GOOS=linux GOARCH=${ARCH} go build -o pifi main.go upload: scp pifi pi@rpi-40ac:/home/pi/pifi diff --git a/README.md b/README.md index 55d069d..004f7f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PiFi -This is a simple tool to create and manage a hotspot on a Raspberry Pi (ARM64). +This is a simple tool to create and manage a hotspot with NetworkManager through DBUS. The code is based on https://github.com/NetworkManager/NetworkManager/blob/main/examples/python/dbus/wifi-hotspot.py, rewritten in Go and adds following features: - Environment variables or intput parameters for SSID and password @@ -9,7 +9,7 @@ The code is based on https://github.com/NetworkManager/NetworkManager/blob/main/ ## Build ```bash -make build +make build ARCH=arm64 ``` ## Usage