summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-12 19:34:24 +0100
committerGitHub <noreply@github.com>2018-11-12 19:34:24 +0100
commit1ca22ec3f05bec62f6b7a0cb2e4f3c04f958e146 (patch)
treee3f6ddaa9c1a3199eb2a050d94058675ae2c7db0 /modules/luci-mod-system/luasrc
parent99a696db26e87ce96ce6070aa8fec11ae97a30a1 (diff)
parent9f95fb3c08cbde6c6ef9b1f7dbd3732d016854fd (diff)
Merge pull request #2245 from Ansuel/fstab
luci-mod-system: add support for additional filesystem
Diffstat (limited to 'modules/luci-mod-system/luasrc')
-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"))