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>
15 lines
365 B
JSON
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" ]
|
|
}
|
|
}
|
|
}
|
|
}
|