mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-21 06:10:48 +00:00
base-files: uci-defaults: allow setting the number of MACs a radio can use
Introduce new uci-default functions: - ucidef_set_wireless_mac_count [count] Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
fa53a733ab
commit
e7c7a3c154
@ -684,6 +684,27 @@ ucidef_set_country() {
|
|||||||
json_select ..
|
json_select ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ucidef_set_wireless_mac_count() {
|
||||||
|
local band="$1"
|
||||||
|
local mac_count="$2"
|
||||||
|
|
||||||
|
case "$band" in
|
||||||
|
2g|5g|6g) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
[ -z "$mac_count" ] && return
|
||||||
|
|
||||||
|
json_select_object wlan
|
||||||
|
json_select_object defaults
|
||||||
|
json_select_object ssids
|
||||||
|
json_select_object "$band"
|
||||||
|
json_add_string mac_count "$mac_count"
|
||||||
|
json_select ..
|
||||||
|
json_select ..
|
||||||
|
json_select ..
|
||||||
|
json_select ..
|
||||||
|
}
|
||||||
|
|
||||||
ucidef_set_root_password_plain() {
|
ucidef_set_root_password_plain() {
|
||||||
local passwd="$1"
|
local passwd="$1"
|
||||||
json_select_object credentials
|
json_select_object credentials
|
||||||
|
Loading…
Reference in New Issue
Block a user