From: Paul Spooren Date: Thu, 27 Jul 2017 22:28:12 +0000 (+0200) Subject: luci-app-attendedsysupgrade: add package X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=b90153386cf890aa551e2b4457e9092d4c5b4867 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 --- diff --git a/applications/luci-app-attendedsysupgrade/Makefile b/applications/luci-app-attendedsysupgrade/Makefile new file mode 100644 index 000000000..32992e19d --- /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 000000000..1bd050af6 --- /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 000000000..8bcec3b49 --- /dev/null +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -0,0 +1,266 @@ +<%+header%> +

<%:Attended Sysupgrade%>

+
+ + +
+ + + + +<%+footer%>