Squashed 'luci-app-smartdns/' content from commit f5a370f
git-subtree-dir: luci-app-smartdns git-subtree-split: f5a370f67fdc034738edf4aeb80604fd3df3b1ed
This commit is contained in:
commit
f0353c7f4a
13 changed files with 8229 additions and 0 deletions
21
root/usr/share/luci/menu.d/luci-app-smartdns.json
Normal file
21
root/usr/share/luci/menu.d/luci-app-smartdns.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"admin/services/smartdns": {
|
||||
"title": "SmartDNS",
|
||||
"order": 60,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "smartdns/smartdns"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-smartdns" ],
|
||||
"uci": { "smartdns": true }
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/smartdns/log": {
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "smartdns/log"
|
||||
}
|
||||
}
|
||||
}
|
||||
25
root/usr/share/rpcd/acl.d/luci-app-smartdns.json
Normal file
25
root/usr/share/rpcd/acl.d/luci-app-smartdns.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"luci-app-smartdns": {
|
||||
"description": "Grant access to LuCI app smartdns",
|
||||
"read": {
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/etc/smartdns/*": [ "read" ],
|
||||
"/usr/libexec/smartdns-call tail": [ "exec" ],
|
||||
"/usr/libexec/smartdns-call clear_log": [ "exec" ]
|
||||
},
|
||||
"ubus": {
|
||||
"service": [ "list" ]
|
||||
},
|
||||
"uci": [ "smartdns" ]
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/etc/smartdns/*": [ "write" ],
|
||||
"/etc/init.d/smartdns restart": [ "exec" ],
|
||||
"/etc/init.d/smartdns updatefiles": [ "exec" ]
|
||||
},
|
||||
"uci": [ "smartdns" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue