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