[Buildroot] [PATCH 1/4] system: adding options for configuring wifi
Angelo Compagnucci
angelo at amarulasolutions.com
Tue Jun 28 07:49:43 UTC 2022
On Sat, Jun 25, 2022 at 7:32 AM Andreas Ziegler <br015 at umbiko.net> wrote:
> Hi Angelo,
>
> On 2022-06-21 13:31, Angelo Compagnucci <angelo at amarulasolutions.com>
> wrote:
> >
> > These options can be used by packages to configure a wifi card
> > to connect at boot.
> >
> > Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
> > ---
> > system/Config.in | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/system/Config.in b/system/Config.in
> > index 888c24ce81..9a5bdb2932 100644
> > --- a/system/Config.in
> > +++ b/system/Config.in
> > @@ -418,6 +418,21 @@ comment "automatic network configuration via DHCP
> > needs ifupdown or busybox or n
> > depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
> > BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC)
> >
> > +config BR2_SYSTEM_CONNECT_WIFI
> > + bool "Connect to a default wifi access point"
> > + default n
> > + depends on BR2_PACKAGE_WPA_SUPPLICANT
> > +
> > +config BR2_SYSTEM_CONNECT_WIFI_SSID
> > + string "Access point SSID"
> > + default ""
> > + depends on BR2_SYSTEM_CONNECT_WIFI
> > +
> > +config BR2_SYSTEM_CONNECT_WIFI_PASSWORD
> > + string "Access point password"
> > + default ""
> > + depends on BR2_SYSTEM_CONNECT_WIFI
> > +
>
> Just nagging, but this is how security breaches get born. If I want to
> do something like this, I use a private overlay outside the region under
> backup or version control ...
>
I wouldn't be so worried about security since a user can have
BR2_TARGET_GENERIC_ROOT_PASSWD in his .config
Anyway, you end up having the wifi password stored somewhere in the overlay
anyway, so I can't see a problem here.
Or you can use an empty password to store in the .config on the version
control, and have a simple sed to replace with the correct credentials just
before the developer makes a build. In any case, having those options makes
way easier to configure a wifi than guessing the correct overlay to setup.
> Kind regards,
> Andreas
>
> > endif # BR2_ROOTFS_SKELETON_DEFAULT
> >
> > config BR2_SYSTEM_DEFAULT_PATH
> > --
> > 2.25.1
>
--
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/20220628/236f6ca2/attachment-0001.html>
More information about the buildroot
mailing list