diff options
Diffstat (limited to 'applications/luci-app-statistics/ipkg/postinst')
-rwxr-xr-x | applications/luci-app-statistics/ipkg/postinst | 9 |
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 +} |