luci-app-mwan3: extend uci-default to set globals section if not present
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
933e0f335c
commit
5371f159da
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ uci -q batch <<-EOF >/dev/null
|
|||
commit ucitrack
|
||||
EOF
|
||||
|
||||
uci -q get mwan3.globals >/dev/null || {
|
||||
uci -q add mwan3 globals >/dev/null
|
||||
uci -q rename mwan3.@globals[-1]="globals" >/dev/null
|
||||
uci -q set mwan3.globals.initial_source="none" >/dev/null
|
||||
uci commit mwan3
|
||||
}
|
||||
|
||||
# remove LuCI cache
|
||||
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
|
||||
|
||||
|
|
Loading…
Reference in a new issue