Developing lightweight computation at the DSG edge

Commit 20583505 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Adapt LAN bridge setup to new UCI model



With commit 892fc7caa9eee9f5ef9e172677f871c02841bae8 OpenWrt introduced
a new model for the br-lan device. The "bridge" type is now defined on
the new "br-lan" device, and the addresses, etc. are assigned to the
'lan' interface.

Partial fix for #489
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 85bda55d
......@@ -296,7 +296,9 @@ qmp_configure_lan() {
# LAN device (br-lan) configuration
echo "Configuring LAN bridge"
qmp_uci_set_raw network.lan="interface"
qmp_uci_set_raw network.lan.type="bridge"
# Fix for #489 after introduction of UCI bridge model (OpenWrt >= 21.02)
#qmp_uci_set_raw network.lan.type="bridge"
qmp_uci_set_raw network.lan.device="br-lan"
qmp_uci_set_raw network.lan.auto='1'
qmp_uci_set_raw network.lan.proto="static"
qmp_uci_set_raw network.lan.ipaddr="$lan_addr"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment