luci-mod-system: port reboot view to client side js
[project/luci.git] / modules / luci-mod-system / luasrc / controller / admin / system.lua
index c7d8ac53236505d6e5be0a592ba5c3c3b60e2aad..2913a23ef241aa8b816114a9ee9166569a4d3151 100644 (file)
@@ -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