From 56fab648caa78422aac47ab8cec168e8a0999316 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 12 May 2022 09:32:02 +0200 Subject: [PATCH] luci-theme-bootstrap: restore initramfs warning Restore accidentally removed the initramfs boot warning banner. Ref: https://github.com/openwrt/luci/commit/8055acc9be89f0bed31b6692ad08e6196611d478#commitcomment-73447330 Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles") Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/themes/bootstrap/header.htm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index 0a93165f57..37d18a2f07 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -74,6 +74,16 @@ <%- end -%> + <%- if boardinfo.rootfs_type == "initramfs" then -%> +
+

<%:System running in recovery (initramfs) mode.%>

+

<%:No changes to settings will be stored and are lost after rebooting. This mode should only be used to install a firmware upgrade%>

+ <% if disp.lookup("admin/system/flash") then %> + + <% end %> +
+ <%- end -%> +