luci-app-attendedsysupgrade: use rpc-sys pkglist
authorPaul Spooren <paul@spooren.de>
Sun, 19 Nov 2017 13:38:49 +0000 (14:38 +0100)
committerPaul Spooren <spooren@informatik.uni-leipzig.de>
Fri, 24 Nov 2017 01:10:31 +0000 (02:10 +0100)
commit802d5b6becf829975e5e129657b9e63a6590b87c
treed1462c665d7753ad230ec405a2650a1349ae5353
parentc647121e0a880c43cad700a674938660502ba9c3
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>
applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm
applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json