diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-07 10:51:28 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-07 11:53:39 +0200 |
commit | b637cf67502735d6ab9ee8a6deb1d1f323a2b15b (patch) | |
tree | 7d46ff7dda4aa19f725247836142e75711ca5690 /modules/luci-mod-system/luasrc/controller | |
parent | 1d68853ccec6a04ffe180263d0b1367e824c091f (diff) |
luci-mod-system: port reboot view to client side js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/luasrc/controller')
-rw-r--r-- | modules/luci-mod-system/luasrc/controller/admin/system.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/luci-mod-system/luasrc/controller/admin/system.lua b/modules/luci-mod-system/luasrc/controller/admin/system.lua index c7d8ac5323..2913a23ef2 100644 --- a/modules/luci-mod-system/luasrc/controller/admin/system.lua +++ b/modules/luci-mod-system/luasrc/controller/admin/system.lua @@ -31,10 +31,5 @@ function index() entry({"admin", "system", "flash"}, view("system/flash"), _("Backup / Flash Firmware"), 70) - entry({"admin", "system", "reboot"}, template("admin_system/reboot"), _("Reboot"), 90) - entry({"admin", "system", "reboot", "call"}, post("action_reboot")) -end - -function action_reboot() - luci.sys.reboot() + entry({"admin", "system", "reboot"}, view("system/reboot"), _("Reboot"), 90) end |