summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-05-23 13:33:04 +0200
committerJo-Philipp Wich <jo@mein.io>2016-05-23 13:33:04 +0200
commit9ad8a0695a6b24b22e722a9db11529c6308581e1 (patch)
treea1123757e22708db4a441162fdca29dfe61e3835
parent6415c04d1342162bad16874653189b3780cdbd04 (diff)
parent350ace252465d1135e41cb38d7feebc093d8a4ce (diff)
Merge pull request #728 from LipkeGu/luci-admin-system-fstab-ui
luci-mod-admin-full: Look also if the file /etc/config/fstab exists.
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/system.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
index 5b80f2078..fd6dda1c8 100644
--- a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
+++ b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
@@ -21,7 +21,7 @@ function index()
entry({"admin", "system", "startup"}, form("admin_system/startup"), _("Startup"), 45)
entry({"admin", "system", "crontab"}, form("admin_system/crontab"), _("Scheduled Tasks"), 46)
- if fs.access("/sbin/block") then
+ if fs.access("/sbin/block") and fs.access("/etc/config/fstab") then
entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), _("Mount Points"), 50)
entry({"admin", "system", "fstab", "mount"}, cbi("admin_system/fstab/mount"), nil).leaf = true
entry({"admin", "system", "fstab", "swap"}, cbi("admin_system/fstab/swap"), nil).leaf = true