summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/ipkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-statistics/ipkg/postinst')
-rwxr-xr-xapplications/luci-app-statistics/ipkg/postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/ipkg/postinst b/applications/luci-app-statistics/ipkg/postinst
new file mode 100755
index 000000000..7e81b3667
--- /dev/null
+++ b/applications/luci-app-statistics/ipkg/postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics
+
+ /etc/init.d/luci_statistics enabled || /etc/init.d/luci_statistics enable
+ /etc/init.d/collectd enabled || /etc/init.d/collectd enable
+
+ exit 0
+}