Rework LuCI build system
[project/luci.git] / applications / luci-app-vnstat / root / etc / uci-defaults / luci-vnstat
diff --git a/applications/luci-app-vnstat/root/etc/uci-defaults/luci-vnstat b/applications/luci-app-vnstat/root/etc/uci-defaults/luci-vnstat
new file mode 100755 (executable)
index 0000000..fa204b3
--- /dev/null
@@ -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