luci/modules/luci-mod-admin-full/luasrc/view/admin_system/reboot.htm

25 lines
766 B
HTML
Raw Normal View History

2008-07-07 22:00:56 +00:00
<%#
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
Licensed to the public under the Apache License 2.0.
2008-07-07 22:00:56 +00:00
-%>
2008-04-11 18:24:25 +00:00
<%+header%>
<h2 name="content"><%:System%></h2>
<h3><%:Reboot%></h3>
<p><%:Reboots the operating system of your device%></p>
<%-
2008-09-05 10:20:07 +00:00
local c = require("luci.model.uci").cursor():changes()
if c and next(c) then
-%>
<p class="warning"><%:Warning: There are unsaved changes that will be lost while rebooting!%></p>
<%-
end
if not reboot then
-%>
<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:Perform reboot%></a></p>
<%- else -%>
<p><%:Please wait: Device rebooting...%></p>
2008-04-28 08:16:07 +00:00
<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
<%- end -%>
2008-04-11 18:24:25 +00:00
<%+footer%>