summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rwxr-xr-xapplications/luci-splash/ipkg/postinst4
-rwxr-xr-xapplications/luci-statistics/ipkg/postinst6
2 files changed, 3 insertions, 7 deletions
diff --git a/applications/luci-splash/ipkg/postinst b/applications/luci-splash/ipkg/postinst
index 0a4ca74cb..f898ad162 100755
--- a/applications/luci-splash/ipkg/postinst
+++ b/applications/luci-splash/ipkg/postinst
@@ -1,7 +1,5 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
- /etc/init.d/luci_splash enable
-
- exit 0
+ /etc/init.d/luci_splash enabled || /etc/init.d/luci_splash enable
}
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
}