Merge pull request #728 from LipkeGu/luci-admin-system-fstab-ui
luci-mod-admin-full: Look also if the file /etc/config/fstab exists.
This commit is contained in:
commit
9ad8a0695a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue