summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-modemmanager/root/usr
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-07-03 11:55:08 +0200
committerGitHub <noreply@github.com>2023-07-03 11:55:08 +0200
commit51d9b9d33f35c5c1452909677a75b6ac7ccf6de6 (patch)
treee943a65f5d4510d0e38c591afd3937f058a517e8 /protocols/luci-proto-modemmanager/root/usr
parentb06de7e4a11c5d17c8a1334b7806ba1ea90de3ca (diff)
parent594bc35b870c09ea47a66a59c5dfafd47b9b17d5 (diff)
Merge pull request #6451 from lvoegl/pr/20230602-proto-modemmanager-status
luci-proto-modemmanager: add status page
Diffstat (limited to 'protocols/luci-proto-modemmanager/root/usr')
-rw-r--r--protocols/luci-proto-modemmanager/root/usr/share/luci/menu.d/luci-proto-modemmanager.json13
-rw-r--r--protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json8
2 files changed, 17 insertions, 4 deletions
diff --git a/protocols/luci-proto-modemmanager/root/usr/share/luci/menu.d/luci-proto-modemmanager.json b/protocols/luci-proto-modemmanager/root/usr/share/luci/menu.d/luci-proto-modemmanager.json
new file mode 100644
index 0000000000..7104f221ce
--- /dev/null
+++ b/protocols/luci-proto-modemmanager/root/usr/share/luci/menu.d/luci-proto-modemmanager.json
@@ -0,0 +1,13 @@
+{
+ "admin/status/modemmanager": {
+ "title": "Mobile Service",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "modemmanager/status"
+ },
+ "depends": {
+ "acl": [ "luci-proto-modemmanager" ]
+ }
+ }
+}
diff --git a/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json b/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
index e3d5df7bec..cde3e9cbb0 100644
--- a/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
+++ b/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json
@@ -4,10 +4,10 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
- "/usr/bin/mmcli -L": [ "exec" ],
- "/usr/bin/mmcli -m [0-9]": [ "exec" ],
- "/usr/bin/mmcli -m [0-9][0-9]": [ "exec" ],
- "/usr/bin/mmcli -m [0-9][0-9][0-9]": [ "exec" ]
+ "/usr/bin/mmcli -L -J": [ "exec" ],
+ "/usr/bin/mmcli -m [0-9]* -J": [ "exec" ],
+ "/usr/bin/mmcli -i [0-9]* -J": [ "exec" ],
+ "/usr/bin/mmcli -m [0-9]* --location-get -J": [ "exec" ]
}
}
}