Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

Feature: allow to configure WIFI by editing files on the SD card #141

Open cdupont opened 3 years ago

cdupont commented 3 years ago

The idea is to allow to configure the WIFI just after flashing the SD card, by mounting the SD on the PC. This way, no AP mode, Ethernet cable or HDMI screen is needed. This is what Rasbian do for headless: https://www.raspberrypi.org/documentation/configuration/wireless/headless.md

From Moji: in order to force the pi not to go to AP mode, please set that wpa_supplicant.conf then create an empty file on the root of wazigate with this name: ~/waziup-gateway/.default_ap_done so the wazigate knows that the WiFi is being pre-configured

cdupont commented 3 years ago

I tried this, but didn't work: I can't connect with WIFI

cdupont commented 3 years ago

Which wpa_supplicant.conf do I need to modify? The one in /boot or /etc/wpa_supplicant/ ?

mojtaba-esk commented 3 years ago

ah one thing I forgot, after the configuration above you need to run:

bash /home/pi/waziup-gateway/wazigate-host/start_wifi.sh

or on SD card, you can add it to this file, right above the wifi scripts: /home/pi/waziup-gateway/start.sh