gluon-luci-admin: remove reboot feature

Configmode should be exited by using the wizard instead.
This commit is contained in:
Nils Schneider 2014-02-18 19:17:47 +01:00
parent c2adf36e20
commit 123fef47f0
2 changed files with 0 additions and 40 deletions

View File

@ -19,7 +19,6 @@ function index()
entry({"admin", "passwd"}, cbi("admin/passwd"), "Admin Password", 10) entry({"admin", "passwd"}, cbi("admin/passwd"), "Admin Password", 10)
entry({"admin", "backup"}, call("action_backup"), "Backup / Restore", 80) entry({"admin", "backup"}, call("action_backup"), "Backup / Restore", 80)
entry({"admin", "upgrade"}, call("action_upgrade"), "Flash Firmware", 90) entry({"admin", "upgrade"}, call("action_upgrade"), "Flash Firmware", 90)
entry({"admin", "reboot"}, call("action_reboot"), "Reboot", 100)
end end
function action_backup() function action_backup()
@ -63,14 +62,6 @@ function action_backup()
end end
end end
function action_reboot()
local reboot = luci.http.formvalue("reboot")
luci.template.render("admin/reboot", {reboot=reboot})
if reboot then
luci.sys.reboot()
end
end
function action_upgrade() function action_upgrade()
require("luci.model.uci") require("luci.model.uci")

View File

@ -1,31 +0,0 @@
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
-%>
<%+header%>
<h2><a id="content" name="content">Reboot</a></h2>
<p>Reboots the operating system of your device</p>
<%-
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="<%=REQUEST_URI%>?reboot=1">Perform reboot</a></p>
<%- else -%>
<p>Please wait: Device rebooting...</p>
<%- end -%>
<%+footer%>