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
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@ do
if c == computer.getBootAddress() then
fs.mount("boot",component.proxy(c))
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))
print(c:sub(1,8).." mounted as fs"..string.format("%02d",C))
C=C+1