From 624e37ceae2fa2bef7f51565f28bfc827ad0f704 Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Fri, 10 Oct 2014 18:27:40 -0400 Subject: luci-app-mjpg-streamer: Add new module for mjpg-streamer management Signed-off-by: Ted Hess --- applications/luci-mjpg-streamer/ipkg/postinst | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 applications/luci-mjpg-streamer/ipkg/postinst (limited to 'applications/luci-mjpg-streamer/ipkg/postinst') 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 +} -- cgit v1.2.3