diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-08 02:16:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-08 02:16:38 +0000 |
commit | 5c7ec5827a892c7d008aeac1ee549e8fbcde1d12 (patch) | |
tree | 24da6b5e20f30f059ac1c21f3ed86bb31dfb8e36 | |
parent | 7ab8b51bd1a1d91e5ee18a0bf2db2a6cda031944 (diff) |
modules/admin-full: only show mount point config if /e/c/fstab is present
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index 1a19b143d..432d803b2 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -25,7 +25,10 @@ function index() entry({"admin", "system", "passwd"}, form("admin_system/passwd"), i18n("Admin Password"), 20) entry({"admin", "system", "sshkeys"}, form("admin_system/sshkeys"), i18n("<abbr title=\"Secure Shell\">SSH</abbr>-Keys"), 30) entry({"admin", "system", "processes"}, form("admin_system/processes"), i18n("Processes"), 45) - entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), i18n("Mount Points"), 50) + + if nixio.fs.access("/etc/config/fstab") then + entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), i18n("Mount Points"), 50) + end if nixio.fs.access("/sys/class/leds") then entry({"admin", "system", "leds"}, cbi("admin_system/leds"), i18n("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60) |