From 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich
Date: Wed, 3 Dec 2014 15:17:05 +0100
Subject: Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
* Make each LuCI module its own standalone package
* Deploy a shared luci.mk which is used by each module Makefile
Signed-off-by: Jo-Philipp Wich
---
.../luasrc/view/failsafe/applyreboot.htm | 50 +++++++++++++++++
.../luasrc/view/failsafe/flashops.htm | 43 +++++++++++++++
.../luasrc/view/failsafe/reboot.htm | 26 +++++++++
.../luasrc/view/failsafe/upgrade.htm | 62 ++++++++++++++++++++++
4 files changed, 181 insertions(+)
create mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm
create mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm
create mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm
create mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm
(limited to 'modules/luci-mod-failsafe/luasrc/view/failsafe')
diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm
new file mode 100644
index 0000000000..866d213f05
--- /dev/null
+++ b/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm
@@ -0,0 +1,50 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth
+Copyright 2008 Jo-Philipp Wich
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+
+
+
+ <%=luci.sys.hostname()%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %>
+
+
+
+
+
+
+
+
diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm
new file mode 100644
index 0000000000..5ff23e5c17
--- /dev/null
+++ b/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm
@@ -0,0 +1,43 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth
+Copyright 2008 Jo-Philipp Wich
+Copyright 2012 Daniel Golle
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+
+<%+header%>
+
+
+
+
+<%+footer%>
diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm
new file mode 100644
index 0000000000..e2e4db035b
--- /dev/null
+++ b/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm
@@ -0,0 +1,26 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth
+Copyright 2008 Jo-Philipp Wich
+Copyright 2012 Daniel Golle
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+<%+header%>
+
+
+<%- end -%>
+<%+footer%>
diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm
new file mode 100644
index 0000000000..7a86000efb
--- /dev/null
+++ b/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm
@@ -0,0 +1,62 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth
+Copyright 2008-2009 Jo-Philipp Wich
+Copyright 2012 Daniel Golle
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+
+<%+header%>
+
+
+ <%_ The flash image was uploaded.
+ Below is the checksum and file size listed,
+ compare them with the original file to ensure data integrity.
+ Click "Proceed" below to start the flash procedure. %>
+
+ <% if storage > 0 and size > storage then %>
+
+
<%:It appears that you are trying to
+ flash an image that does not fit into the flash memory, please verify
+ the image file! %>