Force postinst script exiting with return code 0
[project/luci.git] / applications / luci-ushare / ipkg / postinst
index f392489..54b1a33 100644 (file)
@@ -1,4 +1,6 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-ushare ) && rm -f /etc/uci-defaults/luci-ushare
+       /etc/init.d/ushare enabled || /etc/init.d/ushare enable
+       exit 0
 }