prevent package upgrade failures caused by sloppy postinstalls
[project/luci.git] / applications / luci-splash / ipkg / postinst
index 0a4ca74..f898ad1 100755 (executable)
@@ -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
 }