summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer')
-rwxr-xr-xapplications/luci-app-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer b/applications/luci-app-mjpg-streamer/root/etc/uci-defaults/luci-mjpg-streamer
new file mode 100755
index 0000000000..6a380cfe5d
--- /dev/null
+++ b/applications/luci-app-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