diff options
author | Paul Spooren <paul@spooren.de> | 2017-11-19 14:38:49 +0100 |
---|---|---|
committer | Paul Spooren <spooren@informatik.uni-leipzig.de> | 2017-11-24 02:10:31 +0100 |
commit | 802d5b6becf829975e5e129657b9e63a6590b87c (patch) | |
tree | d1462c665d7753ad230ec405a2650a1349ae5353 /applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json | |
parent | c647121e0a880c43cad700a674938660502ba9c3 (diff) |
luci-app-attendedsysupgrade: use rpc-sys pkglist
The bash package rpcd-mod-packagelist is no longer required as it has
been ported to rpc-sys by @dangowrt. The luci app now uses that feature.
The packagelist.acls is no longer required and has been removed.
luci-app-attendedsysupgrade: follow new server api
a new api uses more status codes and headers instead of genric 400 code
with json payload.
show error message when ubus call fail
fix typo
more info here
https://github.com/aparcar/attendedsysupgrade-server#response-status-codes
luci-app-attendedsysupgrade: refactoring
luci-app-attendedsysupgrade: use checksum
now compares cgi-io md5 checksum with md5 of server
as well checks if enough free memory is available to store image
Added needed ACL to let Luci request "system info"
rename "image" to "firmware" in output strings. This was requested as
"unification"
rpcd-mod-packelist used to return a variable called "packagelist", the
new "rpc-sys packagelist" returns a variable called "packages". This has
been adapted.
Signed-off-by: Paul Spooren <paul@spooren.de>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json index 97aa81492..754931926 100644 --- a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json +++ b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json @@ -4,10 +4,12 @@ "read": { "ubus": { "rpc-sys": [ - "upgrade_start" + "upgrade_start", + "packagelist" ], "system": [ - "board" + "board", + "info" ], "uci": [ "get", "set", "commit" |