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