Enabling Wi-Fi on First boot

Petr Štetiar ynezz at true.cz
Thu Jul 8 00:39:33 PDT 2021


Paul Spooren <mail at aparcar.org> [2021-07-07 15:10:59]:

Hi,

> Feel free to check this out, it's not ready yet but should give an idea:
> 
> https://github.com/openwrt/openwrt/pull/4349
>
> More sophisticated setups are not supported this is merely used to allow

are not supported for *now*, but once folks notice this, they'll of course try
to extend this for their use case and thus bloat it further. BTW why is
wireless so special? Why there is not default config for example for LTE or
ppoe as well?

Sorry, but I don't like this, as you're solving just one very simple use case,
adding stuff which would never be enabled in official images. IIUC this
feature can't be used from imagebuilder either, thus folks would need to
always build the images from scratch, which seems to be overkill just for
tweaking config. Or am I missing something?

The standard way for doing such tweaks is `files` directory, which has clumsy
UX. If you want to improve that UX, you're probably looking for something like
ucentral[1] is doing. Having some default image configuration specified in
ucode/YAML (would probably need YAML support added into ucode first) and then
generate those uci configs into respective `files` directory. BTW this should
be external project, no need to have this in the tree, it would make CI/QA
much easier etc.

1. https://github.com/blogic/ucentral-schema/blob/main/renderer/templates/interface/ssid.uc

-- ynezz



More information about the openwrt-devel mailing list