summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/root
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-08-11 16:16:33 +0300
committerGitHub <noreply@github.com>2017-08-11 16:16:33 +0300
commit8bc19716615e264474113af433ccc9bd9f3380ca (patch)
treefaf947f95899ebf86638e7df36f7dd846e2e3598 /applications/luci-app-mwan3/root
parentafe2d2c18743b0f85efb030fb279c4e5ac169197 (diff)
parentbcc9382e160407760a2b327b15494c3673819314 (diff)
Merge pull request #1297 from TDT-GmbH/luci-app-mwan3_add_options
luci-app-mwan3: add new options
Diffstat (limited to 'applications/luci-app-mwan3/root')
-rwxr-xr-xapplications/luci-app-mwan3/root/etc/uci-defaults/60_luci-mwan37
1 files changed, 7 insertions, 0 deletions
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 ff9a229edd..509a694364 100755
--- 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