reboot.htm 741 B

12345678910111213141516171819202122232425
  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. <%+header%>
  7. <h2 name="content"><%:System%></h2>
  8. <h3><%:Reboot%></h3>
  9. <p><%:Reboots the operating system of your device%></p>
  10. <%-
  11. local c = require("luci.model.uci").cursor():changes()
  12. if c and next(c) then
  13. -%>
  14. <p class="warning"><%:Warning: There are unsaved changes that will be lost while rebooting!%></p>
  15. <%-
  16. end
  17. if not reboot then
  18. -%>
  19. <p><a href="<%=REQUEST_URI%>?reboot=1"><%:Perform reboot%></a></p>
  20. <%- else -%>
  21. <p><%:Please wait: Device rebooting...%></p>
  22. <script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
  23. <%- end -%>
  24. <%+footer%>