Changeset 5753

Show
Ignore:
Timestamp:
03/08/10 03:16:38 (3 years ago)
Author:
jow
Message:

modules/admin-full: only show mount point config if /e/c/fstab is present

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/controller/admin/system.lua

    r5485 r5753  
    2626    entry({"admin", "system", "sshkeys"}, form("admin_system/sshkeys"), i18n("<abbr title=\"Secure Shell\">SSH</abbr>-Keys"), 30) 
    2727    entry({"admin", "system", "processes"}, form("admin_system/processes"), i18n("Processes"), 45) 
    28     entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), i18n("Mount Points"), 50) 
     28 
     29    if nixio.fs.access("/etc/config/fstab") then 
     30        entry({"admin", "system", "fstab"}, cbi("admin_system/fstab"), i18n("Mount Points"), 50) 
     31    end 
    2932 
    3033    if nixio.fs.access("/sys/class/leds") then