summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nlbwmon/root/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-07-30 11:54:09 +0200
committerGitHub <noreply@github.com>2017-07-30 11:54:09 +0200
commit2523e0f479e2bd8c3d403637df03c6bb6c4a2d85 (patch)
tree081a10b153a9b94cbdc27550d93ba57babec900b /applications/luci-app-nlbwmon/root/etc
parent4c9ae3f615fb85a888728c251568259fb82246a2 (diff)
parent0fe93fc3a3c9402a5d0af4415ed140df20f14953 (diff)
Merge pull request #1259 from jow-/introduce-nlbwmon
luci-app-nlbwmon: new package
Diffstat (limited to 'applications/luci-app-nlbwmon/root/etc')
-rw-r--r--applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon b/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
new file mode 100644
index 0000000000..c9771779ee
--- /dev/null
+++ b/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@nlbwmon[-1]
+ add ucitrack nlbwmon
+ set ucitrack.@nlbwmon[-1].init=nlbwmon
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0