build: allow WiFi AP customization during build wifiopt
authorPaul Spooren <mail@aparcar.org>
Thu, 8 Jul 2021 00:55:33 +0000 (14:55 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 16 Sep 2021 21:08:38 +0000 (11:08 -1000)
commit622f8cb2c03b3f0a93cc55d836c448ef63023f18
treeaa3bea2ac851c5db685e285a9582ed919b06a6a0
parenta46fa5c3a7fb6cdfd20969a38b9b0ffe8b314d1b
build: allow WiFi AP customization during build

This commit adds a sub-menu to the image options to modify the default
access point (AP) automatically created on first boot. The OpenWrt WiFi
AP is traditionally disabled for security reasons and does not require a
password (encryption "none").

The package base-files will generate a file called
`/etc/openwrt_wifi_defaults` which is read by the mac80211.sh script and
allows modification of the UCI options `disabled`, `ssid`, `encryption`
and `key`.

More sophisticated setups are not supported this is merely used to allow
modification of the default AP, just like `VERSIONOPT` is used to modify
the `/etc/openwrt_release` file.

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/version.mk
package/base-files/Makefile
package/base-files/files/etc/openwrt_wifi_defaults [new file with mode: 0644]
package/base-files/image-config.in
package/kernel/mac80211/files/lib/wifi/mac80211.sh