applications/luci-vnstat: add uci-defaults script

This commit is contained in:
Jo-Philipp Wich 2011-01-14 17:47:55 +00:00
parent 180dbe580b
commit ba949a84f6

View file

@ -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