summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mjpg-streamer/ipkg
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-mjpg-streamer/ipkg')
-rw-r--r--applications/luci-mjpg-streamer/ipkg/postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-mjpg-streamer/ipkg/postinst b/applications/luci-mjpg-streamer/ipkg/postinst
new file mode 100644
index 0000000000..cfca9d308f
--- /dev/null
+++ b/applications/luci-mjpg-streamer/ipkg/postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-mjpg-streamer ) && rm -f /etc/uci-defaults/luci-mjpg-streamer
+ /etc/init.d/mjpg-streamer enabled || /etc/init.d/mjpg-streamer enable
+ exit 0
+}