summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mjpg-streamer/root/usr/share
diff options
context:
space:
mode:
authorAyushman Tripathi <ayushmantripathi7724@gmail.com>2023-08-11 23:58:47 +0530
committerJo-Philipp Wich <jo@mein.io>2023-08-31 15:45:49 +0200
commit1b8e6e01b7225ea7a43487a79bc881d8b58cc639 (patch)
treece4671223ffb3fa4e465ccc33978ffb76ebc9c5c /applications/luci-app-mjpg-streamer/root/usr/share
parent96b11ae111c49f41594195291aa2151ae1046da9 (diff)
luci-app-mjpg-streamer: migrate to js
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> [fix commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-mjpg-streamer/root/usr/share')
-rw-r--r--applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json13
-rw-r--r--applications/luci-app-mjpg-streamer/root/usr/share/rpcd/acl.d/luci-app-mjpg-streamer.json10
2 files changed, 15 insertions, 8 deletions
diff --git a/applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json b/applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json
index 6f79358e49..9a5a8bd9eb 100644
--- a/applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json
+++ b/applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json
@@ -2,13 +2,16 @@
"admin/services/mjpg-streamer": {
"title": "MJPG-streamer",
"action": {
- "type": "cbi",
- "path": "mjpg-streamer",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "mjpg-streamer/mjpg-streamer"
},
"depends": {
- "acl": [ "luci-app-mjpg-streamer" ],
- "uci": { "mjpg-streamer": true }
+ "acl": [
+ "luci-app-mjpg-streamer"
+ ],
+ "uci": {
+ "mjpg-streamer": true
+ }
}
}
}
diff --git a/applications/luci-app-mjpg-streamer/root/usr/share/rpcd/acl.d/luci-app-mjpg-streamer.json b/applications/luci-app-mjpg-streamer/root/usr/share/rpcd/acl.d/luci-app-mjpg-streamer.json
index ab68a6e1c2..4a2f1df55a 100644
--- a/applications/luci-app-mjpg-streamer/root/usr/share/rpcd/acl.d/luci-app-mjpg-streamer.json
+++ b/applications/luci-app-mjpg-streamer/root/usr/share/rpcd/acl.d/luci-app-mjpg-streamer.json
@@ -2,10 +2,14 @@
"luci-app-mjpg-streamer": {
"description": "Grant UCI access for luci-app-mjpg-streamer",
"read": {
- "uci": [ "mjpg-streamer" ]
+ "uci": [
+ "mjpg-streamer"
+ ]
},
"write": {
- "uci": [ "mjpg-streamer" ]
+ "uci": [
+ "mjpg-streamer"
+ ]
}
}
-}
+} \ No newline at end of file