Closed akumpf closed 2 years ago
Note that this is heavily derived from https://github.com/MkLHX/AP_STA_RPI_SAME_WIFI_CHIP/pull/3.
I did add back the --no-internet
flag (useful as a temporary AP to help get the STA/client wifi onto a network without fully exposing it), though I believe it's one way (if you always use the flag, the IP/routing will be left out, but if you use it once, it'll be added via iptables)... Could probably add a check in the script that removes the routing if was previously added.
edit: and pardon my misspelling on "cron" as "chron" in the script's comments (feel to edit!). I've been spending too much time synching clocks with another tool (chrony) and got my wires crossed. 🤦♂️
I could merge this into my branch to keep things in one place. Looks good!
this is really a fucking good idea thank you @akumpf and @ipitio you can take the lead on ap_sta_config2.sh i you want ;-) when everything can be test by more users we can build better options like a device/os selector to run the good script (for example)
This is an EXPERIMENTAL version of the config script for newer boards/distros using a service model instead of cron.
In version 2.x.x:
Created a new file so this can be debugged in parallel without upsetting existing systems that depend on the previous script. May also want to give some explicit info in the README to help new users understand that there are two flavors to choose from.