made fs-automount quiet, now uses log()
This commit is contained in:
parent
b5011de5ab
commit
b60a7161ab
@ -3,23 +3,23 @@ do
|
|||||||
for c in component.list("filesystem") do
|
for c in component.list("filesystem") do
|
||||||
if c == computer.tmpAddress() then
|
if c == computer.tmpAddress() then
|
||||||
fs.mount("tmp",component.proxy(c))
|
fs.mount("tmp",component.proxy(c))
|
||||||
print(c:sub(1,8).." mounted as tmp")
|
log(c:sub(1,8).." mounted as tmp")
|
||||||
end
|
end
|
||||||
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")
|
log(c:sub(1,8).." mounted as boot")
|
||||||
end
|
end
|
||||||
if component.invoke(c,"getLabel") ~= "" and component.invoke(c,"getLabel") ~= nil then
|
if component.invoke(c,"getLabel") ~= "" and component.invoke(c,"getLabel") ~= nil then
|
||||||
fs.mount(component.invoke(c,"getLabel"),component.proxy(c))
|
fs.mount(component.invoke(c,"getLabel"),component.proxy(c))
|
||||||
print(c:sub(1,8).." mounted as "..component.invoke(c,"getLabel"))
|
log(c:sub(1,8).." mounted as "..component.invoke(c,"getLabel"))
|
||||||
end
|
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))
|
log(c:sub(1,8).." mounted as fs"..string.format("%02d",C))
|
||||||
C=C+1
|
C=C+1
|
||||||
end
|
end
|
||||||
if component.type(computer.getBootAddress()) ~= "filesystem" then
|
if component.type(computer.getBootAddress()) ~= "filesystem" then
|
||||||
fs.mount("boot",component.proxy(computer.tmpAddress()))
|
fs.mount("boot",component.proxy(computer.tmpAddress()))
|
||||||
print(computer.tmpAddress():sub(1,8).." mounted as boot")
|
log(computer.tmpAddress():sub(1,8).." mounted as boot")
|
||||||
end
|
end
|
||||||
if component.type(computer.getBootAddress()) == "tape_drive" then
|
if component.type(computer.getBootAddress()) == "tape_drive" then
|
||||||
if tape then
|
if tape then
|
||||||
|
Loading…
Reference in New Issue
Block a user