summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mjpg-streamer/ipkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-mjpg-streamer/ipkg/postinst')
-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 000000000..cfca9d308
--- /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
+}