summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core/ipkg
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-core/ipkg')
-rwxr-xr-xmodules/admin-core/ipkg/postinst9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/admin-core/ipkg/postinst b/modules/admin-core/ipkg/postinst
index c2f3b5f184..90138ae76b 100755
--- a/modules/admin-core/ipkg/postinst
+++ b/modules/admin-core/ipkg/postinst
@@ -1,6 +1,7 @@
#!/bin/sh
-/etc/init.d/luci_fixtime enable
-/etc/init.d/luci_ethers enable
-/etc/init.d/luci_hosts enable
-
+[ -n "${IPKG_INSTROOT}" ] || {
+ /etc/init.d/luci_fixtime enable
+ /etc/init.d/luci_ethers enable
+ /etc/init.d/luci_hosts enable
+}