This should make the code a bit more readable and LuCI like instead of using plain JavaScript. Handle the filesystem correctly to avoid installing suqashfs images on ext4 devices and the other way around, also recognize systems running efi. Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit de3e0bbffd87a3e62f59c7206dff48bfc0467a09)
41 lines
570 B
JSON
41 lines
570 B
JSON
{
|
|
"luci-app-attendedsysupgrade": {
|
|
"description": "Grant UCI access to LuCI app attendedsysupgrade",
|
|
"read": {
|
|
"ubus": {
|
|
"rpc-sys": [
|
|
"upgrade_start",
|
|
"packagelist"
|
|
],
|
|
"system": [
|
|
"board",
|
|
"info"
|
|
],
|
|
"uci": [
|
|
"get"
|
|
]
|
|
},
|
|
"file": {
|
|
"/sys/firmware/efi": [ "list" ],
|
|
"/proc/mounts": [ "read" ]
|
|
},
|
|
"uci": [
|
|
"attendedsysupgrade"
|
|
]
|
|
},
|
|
"write": {
|
|
"cgi-io": [
|
|
"upload"
|
|
],
|
|
"ubus": {
|
|
"uci": [
|
|
"set", "commit"
|
|
]
|
|
},
|
|
"uci": [
|
|
"attendedsysupgrade"
|
|
]
|
|
}
|
|
}
|
|
}
|