From b637cf67502735d6ab9ee8a6deb1d1f323a2b15b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 7 Oct 2019 10:51:28 +0200 Subject: luci-mod-system: port reboot view to client side js Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-system/luasrc/controller/admin/system.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/luci-mod-system/luasrc/controller') 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 -- cgit v1.2.3