mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-30 22:20:33 +03:00
Remaster luci-app-youtubeUnblock from deprecated lua scripts to
client-side JS
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"admin/services/youtubeUnblock": {
|
||||
"title": "youtubeUnblock",
|
||||
"order": 60,
|
||||
"action": {
|
||||
"type": "alias",
|
||||
"path": "admin/services/youtubeUnblock/status"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-youtubeUnblock" ],
|
||||
"fs": {
|
||||
"/usr/bin/youtubeUnblock": "executable",
|
||||
"/etc/init.d/youtubeUnblock": "executable"
|
||||
},
|
||||
"uci": { "youtubeUnblock": true }
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"admin/services/youtubeUnblock/status": {
|
||||
"title": "Service Status",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "youtubeUnblock/status"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"luci-app-youtubeUnblock": {
|
||||
"description": "Grant UCI access for luci-app-youtubeUnblock",
|
||||
"read": {
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/etc/init.d/youtubeUnblock status" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock enabled" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock start" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock stop" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock restart" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock enable" : [ "exec" ],
|
||||
"/etc/init.d/youtubeUnblock disable" : [ "exec" ],
|
||||
"/etc/init.d/firewall reload" : [ "exec" ],
|
||||
"/usr/bin/youtubeUnblock --version" : [ "exec" ],
|
||||
"/sbin/logread -e youtubeUnblock -l [0-9]*": [ "exec" ],
|
||||
"/usr/sbin/logread -e youtubeUnblock -l [0-9]*": [ "exec" ]
|
||||
},
|
||||
"uci": [ "youtubeUnblock" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "youtubeUnblock" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user