[Buildroot] [PATCH v3 3/5] package/wpa_supplicant: configure wifi on systemd when enabled
Angelo Compagnucci
angelo at amarulasolutions.com
Mon Oct 3 15:44:21 UTC 2022
On Sun, Sep 18, 2022 at 12:00 PM Peter Korsgaard <peter at korsgaard.com>
wrote:
> >>>>> "Angelo" == Angelo Compagnucci <angelo at amarulasolutions.com> writes:
>
> > Configure a default basic wifi setup able to automatically connect
> > to the selected access point.
>
> > Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
> > ---
> > package/wpa_supplicant/wpa_supplicant.mk | 10 ++++++++++
> > system/Config.in | 1 +
> > 2 files changed, 11 insertions(+)
>
> > diff --git a/package/wpa_supplicant/wpa_supplicant.mk
> b/package/wpa_supplicant/wpa_supplicant.mk
> > index 09971654fe..157d45ee7f 100644
> > --- a/package/wpa_supplicant/wpa_supplicant.mk
> > +++ b/package/wpa_supplicant/wpa_supplicant.mk
> > @@ -275,6 +275,15 @@ define WPA_SUPPLICANT_ENABLE_WIFI
> > echo "}"; \
> > ) >> $(TARGET_DIR)/etc/wpa_supplicant.conf
> > endef
> > +define WPA_SUPPLICANT_WIFI_INSTALL_INIT_SYSTEMD
> > + $(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/wpa_supplicant/
> > + ln -sf ../wpa_supplicant.conf \
> > +
> $(TARGET_DIR)/etc/wpa_supplicant/wpa_supplicant-$(BR2_SYSTEM_DHCP).conf
>
> How do you know BR2_SYSTEM_DHCP is set to something sensible here?
>
Not enforced, but if a user put a nonexistent interface, that file simply
won't work. It is up to the user knowing which interface he wants to enable
dhcp onto.
>
> --
> Bye, Peter Korsgaard
>
--
Angelo Compagnucci
Software Engineer
angelo at amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 (0)42 243 5310
info at amarulasolutions.com
www.amarulasolutions.com
[`as] https://www.amarulasolutions.com|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20221003/5a92b9d5/attachment.html>
More information about the buildroot
mailing list