luci/applications/luci-app-advanced-reboot/root/usr/share/rpcd/acl.d/luci-app-advanced-reboot.json
Ansuel Smith feb8d823e5
luci-app-advanced-reboot: convert to client side
Rework the advanced-reboot app to client side implementation.
Change devices file to json type.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
2020-10-07 14:42:39 +02:00

15 lines
365 B
JSON

{
"luci-app-advanced-reboot": {
"description": "Grant UCI and file access for luci-app-advanced-reboot",
"read": {
"ubus": {
"luci.advanced_reboot": [ "obtain_device_info", "toggle_boot_partition" ]
},
"file": {
"/usr/sbin/fw_printenv": [ "list" ],
"/usr/sbin/fw_setenv": [ "list" ],
"/sbin/poweroff": [ "list", "exec" ]
}
}
}
}