Rewrote UCI apply logic
[project/luci.git] / applications / luci-uvc_streamer / root / etc / uci-defaults / luci-uvc_streamer
index 6ecea2c..42372f0 100644 (file)
@@ -1,4 +1,7 @@
 #!/bin/sh
 
-uci set luci.uci_oncommit.uvc_streamer='/sbin/luci-reload uvc-streamer'
-uci commit luci
+uci batch <<-EOF
+       add ucitrack uvc-streamer
+       set ucitrack.@uvc-streamer[-1].init=uvc-streamer
+       commit ucitrack
+EOF