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