git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
933e0f3
)
luci-app-mwan3: extend uci-default to set globals section if not present
author
Florian Eckert
<redacted>
Fri, 11 Aug 2017 06:54:07 +0000
(08:54 +0200)
committer
Florian Eckert
<redacted>
Fri, 11 Aug 2017 11:33:38 +0000
(13:33 +0200)
Signed-off-by: Florian Eckert <redacted>
applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
patch
|
blob
|
history
diff --git
a/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
b/applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
index ff9a229eddfcb568844ea3c22d971d62f0d105dc..509a69436486d38da24856c7e5ffc4341bc5aace 100755
(executable)
--- a/
applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
+++ b/
applications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan3
@@
-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
git clone https://git.99rst.org/PROJECT