summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-13 18:42:32 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-14 17:05:29 +0200
commitca295b04e72bb869925ba4183800166130f1b228 (patch)
tree66b50a9edc142051dd3544c858b38ec97707ef45 /modules/luci-mod-system/luasrc
parent6ae1cd8fdbd438574270fa9586f40e223fec40e6 (diff)
luci-mod-system: convert menu controller to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/luasrc')
-rw-r--r--modules/luci-mod-system/luasrc/controller/admin/system.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/luci-mod-system/luasrc/controller/admin/system.lua b/modules/luci-mod-system/luasrc/controller/admin/system.lua
deleted file mode 100644
index 3563349f2..000000000
--- a/modules/luci-mod-system/luasrc/controller/admin/system.lua
+++ /dev/null
@@ -1,31 +0,0 @@
--- Copyright 2008 Steven Barth <steven@midlink.org>
--- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.controller.admin.system", package.seeall)
-
-function index()
- entry({"admin", "system", "system"}, view("system/system"), _("System"), 1)
-
- entry({"admin", "system", "admin"}, firstchild(), _("Administration"), 2)
- entry({"admin", "system", "admin", "password"}, view("system/password"), _("Router Password"), 1)
-
- entry({"admin", "system", "admin", "dropbear"}, view("system/dropbear"), _("SSH Access"), 2)
- .uci_depends = { dropbear = true }
-
- entry({"admin", "system", "admin", "sshkeys"}, view("system/sshkeys"), _("SSH-Keys"), 3)
- .uci_depends = { dropbear = true }
-
- entry({"admin", "system", "startup"}, view("system/startup"), _("Startup"), 45)
- entry({"admin", "system", "crontab"}, view("system/crontab"), _("Scheduled Tasks"), 46)
-
- entry({"admin", "system", "mounts"}, view("system/mounts"), _("Mount Points"), 50)
- .file_depends = { "/sbin/block" }
-
- entry({"admin", "system", "leds"}, view("system/leds"), _("LED Configuration"), 60)
- .file_depends = { "/sys/class/leds" }
-
- entry({"admin", "system", "flash"}, view("system/flash"), _("Backup / Flash Firmware"), 70)
-
- entry({"admin", "system", "reboot"}, view("system/reboot"), _("Reboot"), 90)
-end