summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mjpg-streamer/ipkg/postinst
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-05 17:16:59 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-05 17:16:59 +0100
commit66aa988246f4226627b6b0061ff7304b88c3036d (patch)
tree272247048c025c3cbf9b0996e25c654250719017 /applications/luci-mjpg-streamer/ipkg/postinst
parent3fd748745c2ba6c6d06eba29d2fc34013793376b (diff)
parent624e37ceae2fa2bef7f51565f28bfc827ad0f704 (diff)
Merge pull request #264 from thess/mjpg-streamer
luci-app-mjpg-streamer: Add new module for mjpg-streamer management
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
+}