summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm10
1 files changed, 10 insertions, 0 deletions
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 81a23d63af..d762637d8a 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -59,6 +59,16 @@
</div>
<%- end -%>
+ <%- if boardinfo.rootfs_type == "initramfs" then -%>
+ <div class="alert-message warning">
+ <h4><%:System running in recovery (initramfs) mode.%></h4>
+ <p><%:No changes to settings will be stored and are lost after rebooting. This mode should only be used to install a firmware upgrade%></p>
+ <% if disp.lookup("admin/system/flash") then %>
+ <div class="right"><a class="btn" href="<%=url("admin/system/flash")%>"><%:Go to firmware upgrade...%></a></div>
+ <% end %>
+ </div>
+ <%- end -%>
+
<noscript>
<div class="alert-message warning">
<h4><%:JavaScript required!%></h4>