From 4c64aedb3eb09358f20ce29b8bdccb872fb10099 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Feb 2021 14:38:30 +0000 Subject: luci-mod-failsafe: kill old failsafe mod It's been unmaintained for ages and became useless. Better just limit regular luci-mod-admin to only show basic functionality in case `ubus call system board` indicates we are running off initramfs. Singed-off-by: Daniel Golle --- .../luasrc/view/failsafe/applyreboot.htm | 41 ----------------- .../luasrc/view/failsafe/flashops.htm | 34 -------------- .../luasrc/view/failsafe/reboot.htm | 18 -------- .../luasrc/view/failsafe/upgrade.htm | 53 ---------------------- 4 files changed, 146 deletions(-) delete mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm delete mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm delete mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm delete mode 100644 modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm (limited to 'modules/luci-mod-failsafe/luasrc/view') diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm deleted file mode 100644 index 12c138c165..0000000000 --- a/modules/luci-mod-failsafe/luasrc/view/failsafe/applyreboot.htm +++ /dev/null @@ -1,41 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008 Jo-Philipp Wich - Licensed to the public under the Apache License 2.0. --%> - - - - <%=luci.sys.hostname()%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %> - - - - - -
-
-

<%:System%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %>

-
-

- <% if msg then %><%=msg%><% else %><%:Changes applied.%><% end %> -

-

- <%:Loading%> - <%:Waiting for changes to be applied...%> -

-
-
-
- - diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm deleted file mode 100644 index d6e9ad7426..0000000000 --- a/modules/luci-mod-failsafe/luasrc/view/failsafe/flashops.htm +++ /dev/null @@ -1,34 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008 Jo-Philipp Wich - Copyright 2012 Daniel Golle - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> - -

<%:Flash operations%>

-
- <%:Flash new firmware image%> - <% if upgrade_avail then %> -
-
<%:Upload a sysupgrade-compatible image. %>
-
-
- -
- - -
-
-
- <% if image_invalid then %> -
<%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %>
- <% end %> -
- <% else %> -
<%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the wiki for device specific install instructions.%>
- <% end %> -
- -<%+footer%> diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm deleted file mode 100644 index cbbe13b427..0000000000 --- a/modules/luci-mod-failsafe/luasrc/view/failsafe/reboot.htm +++ /dev/null @@ -1,18 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008 Jo-Philipp Wich - Copyright 2012 Daniel Golle - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> -

<%:System%>

-

<%:Reboot%>

-

<%:Reboots the operating system of your device%>

-<%- if not reboot then -%> -

<%:Perform reboot%>

-<%- else -%> -

<%:Please wait: Device rebooting...%>

- -<%- end -%> -<%+footer%> diff --git a/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm b/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm deleted file mode 100644 index 3be9ae1193..0000000000 --- a/modules/luci-mod-failsafe/luasrc/view/failsafe/upgrade.htm +++ /dev/null @@ -1,53 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008-2009 Jo-Philipp Wich - Copyright 2012 Daniel Golle - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> - -

<%:Flash Firmware%> - <%:Verify%>

-

- <%_ 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! %>
- <% end %> - -

- -
-
    -
  • <%:Checksum%>: <%=checksum%>
  • -
  • <%:Size%>: <% - local w = require "luci.tools.webadmin" - write(w.byte_format(size)) - - if storage > 0 then - write(luci.i18n.translatef( - " (%s available)", - w.byte_format(storage) - )) - end - %>
  • -
-
- -
-
- -
-
- - -
-
- -<%+footer%> -- cgit v1.2.3