modules/admin-core: force exit 0 in postinst to suppress opkg error messages
[project/luci.git] / modules / admin-core / ipkg / postinst
index a849819..2ab7c0e 100755 (executable)
@@ -1,9 +1,8 @@
 #!/bin/sh
 
 [ -n "${IPKG_INSTROOT}" ] || {
-       /etc/init.d/luci_fixtime enable
-       /etc/init.d/luci_ethers enable
-       /etc/init.d/luci_hosts enable
-
+       /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
        exit 0
 }