From 600ab99f809d78d6281ad999e7e4e4a91322a85c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 6 Jun 2020 15:42:24 +0200 Subject: [PATCH] gluon-config-mode-outdoor, gluon-web-wifi-config: commit network config 200-wireless will add or remove the mesh network sections of /etc/config/network. Commit this file, so the modified setting doesn't get lost on reboot. Fixes: #2048 --- .../luasrc/lib/gluon/config-mode/wizard/0250-outdoor.lua | 2 +- .../luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-config-mode-outdoor/luasrc/lib/gluon/config-mode/wizard/0250-outdoor.lua b/package/gluon-config-mode-outdoor/luasrc/lib/gluon/config-mode/wizard/0250-outdoor.lua index c36c1f8f..3f1f0cbe 100644 --- a/package/gluon-config-mode-outdoor/luasrc/lib/gluon/config-mode/wizard/0250-outdoor.lua +++ b/package/gluon-config-mode-outdoor/luasrc/lib/gluon/config-mode/wizard/0250-outdoor.lua @@ -25,5 +25,5 @@ return function(form, uci) end end - return {'gluon', 'wireless'} + return {'gluon', 'network', 'wireless'} end diff --git a/package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua b/package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua index 32cdc249..ba662d20 100644 --- a/package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua +++ b/package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua @@ -181,6 +181,7 @@ end function f:write() uci:commit('gluon') os.execute('/lib/gluon/upgrade/200-wireless') + uci:commit('network') uci:commit('wireless') end