From: Jo-Philipp Wich Date: Fri, 14 Jan 2011 17:56:30 +0000 (+0000) Subject: applications/luci-vnstat: add postinstall X-Git-Tag: 0.11.0~2376 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=483826c99475bcf0d5becdf9e176fcf65f188ebd applications/luci-vnstat: add postinstall --- diff --git a/applications/luci-vnstat/ipkg/postinst b/applications/luci-vnstat/ipkg/postinst new file mode 100755 index 000000000..816084a48 --- /dev/null +++ b/applications/luci-vnstat/ipkg/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-vnstat ) && rm -f /etc/uci-defaults/luci-vnstat + /etc/init.d/vnstat enabled || /etc/init.d/vnstat enable + exit 0 +}