Rewrote UCI apply logic
[project/luci.git] / applications / luci-uvc_streamer / root / etc / uci-defaults / luci-uvc_streamer
index 6ecea2c42bc198a8313f88ffdb2bf01353c1c2c7..42372f0515f7dd62ba1c7f50518d1db60704b525 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