From 4891deaf94eb1c98a9a8b993ebcd1987538643f4 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 5 Nov 2017 21:52:11 +0100 Subject: [PATCH] luci-app-attendedsysupgrade: use common use attendedsysupgrade-common package and rpc-sys instead of rpcd-mod-attendedsysupgrade luci-app-attendedsysupgrade: editable server url the server url can now be changed. The solution is kept as simple as possible to not introduce any lua code. Small cleanup, but needs a refactoring. Add acl rights to edit the attendedsysupgrade file Add cgi-io as a dependencie to upload image to router Signed-off-by: Paul Spooren --- .../luci-app-attendedsysupgrade/Makefile | 2 +- .../luasrc/view/attendedsysupgrade.htm | 100 +++++++++++++----- .../share/rpcd/acl.d/attendedsysupgrade.json | 11 +- 3 files changed, 81 insertions(+), 32 deletions(-) diff --git a/applications/luci-app-attendedsysupgrade/Makefile b/applications/luci-app-attendedsysupgrade/Makefile index 8d7a6163d..dbb572bd2 100644 --- a/applications/luci-app-attendedsysupgrade/Makefile +++ b/applications/luci-app-attendedsysupgrade/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=LuCI support for attended sysupgrades -LUCI_DEPENDS:=+luci-base +uhttpd-mod-ubus +rpcd-mod-attendedsysupgrade +LUCI_DEPENDS:=+luci-base +uhttpd-mod-ubus +attendedsysupgrade-common +cgi-io include ../../luci.mk diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm index e1f715daa..847ad5cfb 100644 --- a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -98,23 +98,61 @@ +
- +