mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-08-02 23:49:34 +08:00
10 lines
281 B
Lua
10 lines
281 B
Lua
module("luci.controller.poweroff",package.seeall)
|
|
|
|
function index()
|
|
entry({"admin","system","poweroff"},template("poweroff"),_("PowerOff"),99)
|
|
entry({"admin","system","poweroff","call"},post("action_poweroff"))
|
|
end
|
|
|
|
function action_poweroff()
|
|
luci.util.exec("/sbin/poweroff")
|
|
end |