From b90153386cf890aa551e2b4457e9092d4c5b4867 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 28 Jul 2017 00:28:12 +0200 Subject: luci-app-attendedsysupgrade: add package Add a simple luci view in system tab to perform a sysupgrade with no hassle. Asks an external update server for upgrades, downloads and flashes the upgrade. This packge is the frontend for my current GSoC project: https://summerofcode.withgoogle.com/projects/#5684958571003904 More code is found here: https://github.com/aparcar/gsoc17-attended-sysupgrade Signed-off-by: Paul Spooren [jo@mein.io: squash commits, remove PKGARCH from Makefile] Signed-off-by: Jo-Philipp Wich --- applications/luci-app-attendedsysupgrade/Makefile | 11 + .../luasrc/controller/attendedsysupgrade.lua | 5 + .../luasrc/view/attendedsysupgrade.htm | 266 +++++++++++++++++++++ 3 files changed, 282 insertions(+) create mode 100644 applications/luci-app-attendedsysupgrade/Makefile create mode 100644 applications/luci-app-attendedsysupgrade/luasrc/controller/attendedsysupgrade.lua create mode 100644 applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm (limited to 'applications/luci-app-attendedsysupgrade') diff --git a/applications/luci-app-attendedsysupgrade/Makefile b/applications/luci-app-attendedsysupgrade/Makefile new file mode 100644 index 0000000000..32992e19df --- /dev/null +++ b/applications/luci-app-attendedsysupgrade/Makefile @@ -0,0 +1,11 @@ +# See /LICENSE for more information. +# This is free software, licensed under the GNU General Public License v2. + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=LuCI support for attended sysupgrades +LUCI_DEPENDS:=+luci-base +rpcd-mod-attendedsysupgrade + +include ../../luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/applications/luci-app-attendedsysupgrade/luasrc/controller/attendedsysupgrade.lua b/applications/luci-app-attendedsysupgrade/luasrc/controller/attendedsysupgrade.lua new file mode 100644 index 0000000000..1bd050af66 --- /dev/null +++ b/applications/luci-app-attendedsysupgrade/luasrc/controller/attendedsysupgrade.lua @@ -0,0 +1,5 @@ +module("luci.controller.attendedsysupgrade", package.seeall) + +function index() + entry({"admin", "system", "attended_sysupgrade"}, template("attendedsysupgrade"), _("Attended Sysupgrade"), 1) +end diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm new file mode 100644 index 0000000000..8bcec3b493 --- /dev/null +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -0,0 +1,266 @@ +<%+header%> +

<%:Attended Sysupgrade%>

+
+ + +
+ + + + +<%+footer%> -- cgit v1.2.3