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