From: Jo-Philipp Wich Date: Fri, 14 Jan 2011 17:47:55 +0000 (+0000) Subject: applications/luci-vnstat: add uci-defaults script X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ba949a84f61729b1cbfecd2780b9c4d5095c2d51;p=openwrt-luci.git applications/luci-vnstat: add uci-defaults script --- 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 0000000000..fa204b3b48 --- /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