applications: enable related init scripts on opkg install, otherwise users would...
[project/luci.git] / applications / luci-polipo / ipkg / postinst
index 16408879a18f171d791a3ecaa390df30ea3594e5..0b84b0daf4fa0d954cd137b24840862f1914e187 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-polipo ) && rm -f /etc/uci-defaults/luci-polipo
+       /etc/init.d/polipo enabled || /etc/init.d/polipo enable
 }