1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add luci-proto-modemmanager to add puk code and display device in Network->Interfaces

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-05-28 19:41:33 +02:00
parent 307d22341f
commit 6511494f1c
6 changed files with 489 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{
"admin/status/modemmanager": {
"title": "Cellular Network",
"order": 10,
"action": {
"type": "view",
"path": "modemmanager/status"
},
"depends": {
"acl": [ "luci-proto-modemmanager" ]
}
}
}

View file

@ -0,0 +1,14 @@
{
"luci-proto-modemmanager": {
"description": "Grant access to mmcli",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/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" ]
}
}
}
}