2023-05-22 22:08:29 +08:00

14 lines
436 B
Lua

module("luci.controller.poweroff", package.seeall)
function index()
local page
page = entry({"admin", "system", "poweroff"}, template("admin_system/poweroff"), _("System Stop"), 95)
entry({"admin", "system", "do_poweroff"}, call("action_poweroff"))
page.dependent = true
end
function action_poweroff()
local set = luci.http.formvalue("set")
os.execute("/usr/lib/rooter/shutall.sh")
end