summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mjpg-streamer/root
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/root
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/root')
-rwxr-xr-xapplications/luci-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer b/applications/luci-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer
new file mode 100755
index 0000000000..6a380cfe5d
--- /dev/null
+++ b/applications/luci-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@mjpg-streamer[-1]
+ add ucitrack mjpg-streamer
+ set ucitrack.@mjpg-streamer[-1].init=mjpg-streamer
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0