From 802d5b6becf829975e5e129657b9e63a6590b87c Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 19 Nov 2017 14:38:49 +0100 Subject: 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 --- .../luasrc/view/attendedsysupgrade.htm | 434 ++++++++++++--------- 1 file changed, 243 insertions(+), 191 deletions(-) (limited to 'applications/luci-app-attendedsysupgrade/luasrc/view') diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm index 847ad5cfb3..4ea67ce70a 100644 --- a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -71,15 +71,14 @@ end apply_acls("/usr/share/rpcd/acl.d/attendedsysupgrade.json", luci.dispatcher.context.authsession) - apply_acls("/usr/share/rpcd/acl.d/packagelist.json", luci.dispatcher.context.authsession) %> <%+header%>

<%:Attended Sysupgrade%>

- Easily search and install new releases and package upgrades. Sysupgrade images are created on demand based on locally installed packages. + Easily search and install new releases and package upgrades. Sysupgrade firmware are created on demand based on locally installed packages.
- - + +

@@ -89,7 +88,7 @@