From: Ansuel Smith Date: Wed, 24 Oct 2018 17:19:58 +0000 (+0200) Subject: luci-mod-system: add support for additional filesystem X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2245%2Fhead;p=oweals%2Fluci.git luci-mod-system: add support for additional filesystem The filesystem option doesn't include additional filesystem included with /etc/filesystems, this is usefull if someone have ntfs-3g installed and wants to force use the external utility to mount partition instead of the default present in the kernel (if it's supported) Signed-off-by: Ansuel Smith --- diff --git a/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab/mount.lua b/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab/mount.lua index a85872afa..f21a2775e 100644 --- a/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab/mount.lua +++ b/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab/mount.lua @@ -136,6 +136,13 @@ for fs in io.lines("/proc/filesystems") do end end +local ok, lines = pcall(io.lines, "/etc/filesystem") +if ok then + local fs + for fs in lines do + o:value(fs) + end +end o = mount:taboption("advanced", Value, "options", translate("Mount options"), translate("See \"mount\" manpage for details"))