Add support Zapret2

Sources: https://github.com/bol-van/zapret2
This commit is contained in:
remittor
2025-12-18 16:35:13 +03:00
parent 9298388a12
commit 7a4825a708
25 changed files with 325 additions and 546 deletions

View File

@@ -1,46 +1,48 @@
{
"admin/services/zapret": {
"title": "Zapret",
"order": 61,
"admin/services/zapret2": {
"title": "Zapret2",
"order": 62,
"action": {
"type": "alias",
"path": "admin/services/zapret/service"
"path": "admin/services/zapret2/service"
},
"depends": {
"acl": [ "luci-app-zapret" ],
"acl": [ "luci-app-zapret2" ],
"fs": {
"/opt/zapret/sync_config.sh": "executable",
"/opt/zapret/restore-def-cfg.sh": "executable",
"/etc/init.d/zapret": "executable"
"/opt/zapret2/sync_config.sh": "executable",
"/opt/zapret2/restore-def-cfg.sh": "executable",
"/opt/zapret2/script-exec.sh": "executable",
"/opt/zapret2/update-pkg.sh.sh": "executable",
"/etc/init.d/zapret2": "executable"
},
"uci": { "zapret": true }
"uci": { "zapret2": true }
}
},
"admin/services/zapret/service": {
"admin/services/zapret2/service": {
"title": "Service",
"order": 10,
"action": {
"type": "view",
"path": "zapret/service"
"path": "zapret2/service"
}
},
"admin/services/zapret/settings": {
"admin/services/zapret2/settings": {
"title": "Settings",
"order": 20,
"action": {
"type": "view",
"path": "zapret/settings"
"path": "zapret2/settings"
}
},
"admin/services/zapret/dmnlog": {
"admin/services/zapret2/dmnlog": {
"title": "Log Viewer",
"order": 30,
"action": {
"type": "view",
"path": "zapret/dmnlog"
"path": "zapret2/dmnlog"
}
}
}