summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-vnstat
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-vnstat')
-rwxr-xr-xapplications/luci-vnstat/root/etc/uci-defaults/luci-vnstat11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-vnstat/root/etc/uci-defaults/luci-vnstat b/applications/luci-vnstat/root/etc/uci-defaults/luci-vnstat
new file mode 100755
index 000000000..fa204b3b4
--- /dev/null
+++ b/applications/luci-vnstat/root/etc/uci-defaults/luci-vnstat
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@vnstat[-1]
+ add ucitrack vnstat
+ set ucitrack.@vnstat[-1].init=vnstat
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0