made fs-automount.lua mount labelled filesystems as their label.

This commit is contained in:
Izaya 2017-08-02 00:23:26 +10:00
parent 962be29bea
commit ede81e3250

View File

@ -9,6 +9,10 @@ do
fs.mount("boot",component.proxy(c)) fs.mount("boot",component.proxy(c))
print(c:sub(1,8).." mounted as boot") print(c:sub(1,8).." mounted as boot")
end end
if component.invoke(c,"getLabel") ~= "" then
fs.mount(component.invoke(c,"getLabel"),component.proxy(c))
print(c:sub(1,8).." mounted as "..component.invoke(c,"getLabel"))
end
fs.mount("fs"..string.format("%02d",C),component.proxy(c)) fs.mount("fs"..string.format("%02d",C),component.proxy(c))
print(c:sub(1,8).." mounted as fs"..string.format("%02d",C)) print(c:sub(1,8).." mounted as fs"..string.format("%02d",C))
C=C+1 C=C+1