<%:JavaScript required!%>
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
index 2b890da034..a81991d0a0 100644
--- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
@@ -81,6 +81,16 @@
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and path ~= "admin-system-admin-password" then -%>
<%- end -%>
+ <%- if boardinfo.rootfs_type == "initramfs" then -%>
+
+
<%:Sytem 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 -%>
+
<%- end -%>
+
+ <%- if boardinfo.rootfs_type == "initramfs" then -%>
+