reboot.htm 969 B

123456789101112131415161718192021222324252627282930313233
  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. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. $Id$
  10. -%>
  11. <%+header%>
  12. <h2><a id="content" name="content"><%:System%></a></h2>
  13. <h3><%:Reboot%></h3>
  14. <p><%:Reboots the operating system of your device%></p>
  15. <%-
  16. local c = require("luci.model.uci").cursor():changes()
  17. if c and next(c) then
  18. -%>
  19. <p class="warning"><%:Warning: There are unsaved changes that will be lost while rebooting!%></p>
  20. <%-
  21. end
  22. if not reboot then
  23. -%>
  24. <p><a href="<%=REQUEST_URI%>?reboot=1"><%:Perform reboot%></a></p>
  25. <%- else -%>
  26. <p><%:Please wait: Device rebooting...%></p>
  27. <script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
  28. <%- end -%>
  29. <%+footer%>