mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
uci-defaults: l2mode dedicated wanport
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
This commit is contained in:
parent
1847d587a3
commit
004bbc3d3b
1 changed files with 5 additions and 1 deletions
|
|
@ -80,7 +80,11 @@ l2_network_config() {
|
|||
json_select ..
|
||||
json_select wan 2>/dev/null
|
||||
json_get_var device device
|
||||
[ -n "$device" ] && uci add_list network.br_lan.ports="$device"
|
||||
[ -n "$device" ] && {
|
||||
# dedicated wan port - create uplink device
|
||||
uci -q set network.l2wan=interface
|
||||
uci -q set network.l2wan.device="$device"
|
||||
}
|
||||
json_cleanup
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue