summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mjpg-streamer/ipkg/postinst
diff options
context:
space:
mode:
authorTed Hess <thess@kitschensync.net>2014-10-10 18:27:40 -0400
committerTed Hess <thess@kitschensync.net>2014-12-09 09:49:58 -0500
commit624e37ceae2fa2bef7f51565f28bfc827ad0f704 (patch)
treea8b340d4b7732027aa6b89bc3803f3c0f2de1a60 /applications/luci-mjpg-streamer/ipkg/postinst
parent91532de6179704e4c69f1580274123f5956baf03 (diff)
luci-app-mjpg-streamer: Add new module for mjpg-streamer management
Signed-off-by: Ted Hess <thess@kitschensync.net>
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 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
+}