modules: add failsafe module
[project/luci.git] / modules / failsafe / luasrc / view / failsafe / reboot.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5 Copyright 2012 Daniel Golle <dgolle@allnet.de>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14
15 -%>
16 <%+header%>
17 <h2><a id="content" name="content"><%:System%></a></h2>
18 <h3><%:Reboot%></h3>
19 <p><%:Reboots the operating system of your device%></p>
20 <%- if not reboot then -%>
21 <p><a href="<%=controller%>/failsafe/reboot?reboot=1"><%:Perform reboot%></a></p>
22 <%- else -%>
23 <p><%:Please wait: Device rebooting...%></p>
24 <script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
25 <%- end -%>
26 <%+footer%>