Generally this as been done with a custom image. With the creation of the Firmware Selector, this no longer required folks to setup thier own buld machines.
@aparcar now added a field that let the user add a script to custom images:
[archer]
This script e.g. would automatically enable and configure the WiFi:
# WiFi password (at least 8 characters)
key="12345678"
# WiFi name
ssid="OpenWrt"
wifi_enable_device() {
local cfg="$1"
uci set wireless.$cfg.disabled='0'
}
wifi_setup_interface() {
local cfg="$1"
uci set wireless.$cfg.ssid="$ssid"
uci set wireless.$cfg.key="$key"
uci set wireless.$cfg.encryption="psk2"
}
config_load wireless
…