aa7441d130e4dea9043496a4e05587a1a58778fd
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_system / reboot.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8 <h2 name="content"><%:System%></h2>
9 <h3><%:Reboot%></h3>
10 <p><%:Reboots the operating system of your device%></p>
11 <%-
12 local c = require("luci.model.uci").cursor():changes()
13 if c and next(c) then
14 -%>
15         <p class="warning"><%:Warning: There are unsaved changes that will be lost while rebooting!%></p> 
16 <%-
17 end
18 if not reboot then 
19 -%>
20 <p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:Perform reboot%></a></p>
21 <%- else -%>
22 <p><%:Please wait: Device rebooting...%></p>
23 <script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
24 <%- end -%>
25 <%+footer%>