made fs-automount.lua mount labelled filesystems as their label.
This commit is contained in:
parent
962be29bea
commit
ede81e3250
@ -8,7 +8,11 @@ do
|
|||||||
if c == computer.getBootAddress() then
|
if c == computer.getBootAddress() then
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user