mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-20 05:11:21 +01:00
wifi-scripts: move the "disabled" option to the wifi-iface section
This helps for setups where the wifi interfaces are added dynamically
via procd data by avoiding automatically bringing up interfaces with
the default config. Internally, they are treated pretty much the same
by netifd.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 79a0aebd81)
This commit is contained in:
parent
f867497e35
commit
4305911499
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,6 @@ set ${s}.channel='${channel}'
|
|||
set ${s}.htmode='${htmode}'
|
||||
set ${s}.country='${country || ''}'
|
||||
set ${s}.num_global_macaddr='${num_global_macaddr || ''}'
|
||||
set ${s}.disabled='${defaults ? 0 : 1}'
|
||||
|
||||
set ${si}=wifi-iface
|
||||
set ${si}.device='${name}'
|
||||
|
|
@ -113,6 +112,7 @@ set ${si}.mode='ap'
|
|||
set ${si}.ssid='${defaults?.ssid || "OpenWrt"}'
|
||||
set ${si}.encryption='${defaults?.encryption || encryption}'
|
||||
set ${si}.key='${defaults?.key || ""}'
|
||||
set ${si}.disabled='${defaults ? 0 : 1}'
|
||||
|
||||
`);
|
||||
config[name] = {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue