From f7a3e34955fdcf9678fd0a5e18c8b06b6fc6b244 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 9 Dec 2008 00:03:08 +0000 Subject: prevent package upgrade failures caused by sloppy postinstalls --- applications/luci-statistics/ipkg/postinst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'applications/luci-statistics') diff --git a/applications/luci-statistics/ipkg/postinst b/applications/luci-statistics/ipkg/postinst index e69ae4726..8d52ec2d3 100755 --- a/applications/luci-statistics/ipkg/postinst +++ b/applications/luci-statistics/ipkg/postinst @@ -2,8 +2,6 @@ [ -n "${IPKG_INSTROOT}" ] || { ( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics - /etc/init.d/luci_statistics enable - /etc/init.d/collectd enable - - exit 0 + /etc/init.d/luci_statistics enabled || /etc/init.d/luci_statistics enable + /etc/init.d/collectd enabled || /etc/init.d/collectd enable } -- cgit v1.2.3