summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-vnstat/ipkg
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:56:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:56:30 +0000
commit483826c99475bcf0d5becdf9e176fcf65f188ebd (patch)
treeb2034c8e877d18c0a155a0e6bc9adf5dcad9ff51 /applications/luci-vnstat/ipkg
parent093f677a30e7059e4683b8a15cb5c8fb3e3287d8 (diff)
applications/luci-vnstat: add postinstall
Diffstat (limited to 'applications/luci-vnstat/ipkg')
-rwxr-xr-xapplications/luci-vnstat/ipkg/postinst7
1 files changed, 7 insertions, 0 deletions
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
+}