summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2018-10-24 19:19:58 +0200
committerAnsuel Smith <ansuelsmth@gmail.com>2018-11-12 19:32:23 +0100
commit9f95fb3c08cbde6c6ef9b1f7dbd3732d016854fd (patch)
tree549bb18fa965a8e6bec514007e07480b21d20cf7
parent15fc6bf48d0e856d3390ba929bee0165fa81d673 (diff)
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 <ansuelsmth@gmail.com>
-rw-r--r--modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab/mount.lua7
1 files changed, 7 insertions, 0 deletions
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 a85872afad..f21a2775e1 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"))