From: Jo-Philipp Wich Date: Fri, 14 Jan 2011 17:47:55 +0000 (+0000) Subject: applications/luci-vnstat: add uci-defaults script X-Git-Tag: 0.11.0~2379 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=ba949a84f61729b1cbfecd2780b9c4d5095c2d51 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 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