diff options
author | Florian Eckert <fe@dev.tdt.de> | 2023-07-03 11:55:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 11:55:08 +0200 |
commit | 51d9b9d33f35c5c1452909677a75b6ac7ccf6de6 (patch) | |
tree | e943a65f5d4510d0e38c591afd3937f058a517e8 /protocols/luci-proto-modemmanager/root/usr | |
parent | b06de7e4a11c5d17c8a1334b7806ba1ea90de3ca (diff) | |
parent | 594bc35b870c09ea47a66a59c5dfafd47b9b17d5 (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')
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" ] } } } |