MkLHX / AP_STA_RPI_SAME_WIFI_CHIP

Configures simultaneous AP and Managed Mode Wifi on Raspberry Pi with the same wifi chip
https://mklhx.github.io/AP_STA_RPI_SAME_WIFI_CHIP/
GNU General Public License v3.0
38 stars 14 forks source link

Create ap_sta_config2.sh for new service approach #12

Closed akumpf closed 2 years ago

akumpf commented 2 years ago

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.

akumpf commented 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. 🤦‍♂️

ipitio commented 2 years ago

I could merge this into my branch to keep things in one place. Looks good!

MkLHX commented 2 years ago

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)