summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:47:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:47:55 +0000
commitba949a84f61729b1cbfecd2780b9c4d5095c2d51 (patch)
tree5b28baf0d5e6e159e83d56a5513d4e9f50743267
parent180dbe580b351d06a6d014cdb3c3f20d6ea90af9 (diff)
applications/luci-vnstat: add uci-defaults script
-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