luci: Fix RPC error when config is empty and add restart button.

This commit is contained in:
Nick Peng
2022-10-08 21:59:35 +08:00
parent eeaadcf313
commit 6c800ea12f
3 changed files with 24 additions and 7 deletions

View File

@@ -4,7 +4,8 @@
"read": {
"file": {
"/etc/smartdns/*": [ "read" ],
"/usr/sbin/smartdns": [ "exec" ]
"/usr/sbin/smartdns": [ "exec" ],
"/etc/init.d/smartdns restart" : [ "exec" ]
},
"ubus": {
"service": [ "list" ]