summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon')
-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