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, 6 insertions, 4 deletions
diff --git a/applications/luci-splash/ipkg/postinst b/applications/luci-splash/ipkg/postinst
index e9c8bb12c6..1e4d1793d7 100755
--- a/applications/luci-splash/ipkg/postinst
+++ b/applications/luci-splash/ipkg/postinst
@@ -1,3 +1,5 @@
#!/bin/sh
-/etc/init.d/luci_splash enable
+[ -n "${IPKG_INSTROOT}" ] || {
+ /etc/init.d/luci_splash enable
+}
diff --git a/applications/luci-statistics/ipkg/postinst b/applications/luci-statistics/ipkg/postinst
index 424d8c88dd..536f4bb28a 100755
--- a/applications/luci-statistics/ipkg/postinst
+++ b/applications/luci-statistics/ipkg/postinst
@@ -1,7 +1,7 @@
#!/bin/sh
[ -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
+ /etc/init.d/luci_statistics enable
+ /etc/init.d/collectd enable
+}