2017-08-01 15:45:57 +10:00
|
|
|
do
|
|
|
|
for c in component.list("filesystem") do
|
|
|
|
if c == computer.tmpAddress() then
|
|
|
|
fs.mount("tmp",component.proxy(c))
|
2017-09-05 19:43:46 +10:00
|
|
|
log(c:sub(1,8).." mounted as tmp")
|
2017-08-01 15:45:57 +10:00
|
|
|
end
|
|
|
|
if c == computer.getBootAddress() then
|
|
|
|
fs.mount("boot",component.proxy(c))
|
2017-09-05 19:43:46 +10:00
|
|
|
log(c:sub(1,8).." mounted as boot")
|
2017-08-02 00:23:26 +10:00
|
|
|
end
|
2017-08-03 09:10:02 +10:00
|
|
|
if component.invoke(c,"getLabel") ~= "" and component.invoke(c,"getLabel") ~= nil then
|
2017-08-02 00:23:26 +10:00
|
|
|
fs.mount(component.invoke(c,"getLabel"),component.proxy(c))
|
2017-09-05 19:43:46 +10:00
|
|
|
log(c:sub(1,8).." mounted as "..component.invoke(c,"getLabel"))
|
2017-08-02 00:23:26 +10:00
|
|
|
end
|
2017-09-23 19:13:25 +10:00
|
|
|
fs.mount(c:sub(1,3),component.proxy(c))
|
|
|
|
log(c:sub(1,8).." mounted as "..c:sub(1,3))
|
2017-08-01 15:45:57 +10:00
|
|
|
end
|
2017-09-04 20:43:26 +10:00
|
|
|
if component.type(computer.getBootAddress()) ~= "filesystem" then
|
2017-08-04 14:01:55 +10:00
|
|
|
fs.mount("boot",component.proxy(computer.tmpAddress()))
|
2017-09-05 19:43:46 +10:00
|
|
|
log(computer.tmpAddress():sub(1,8).." mounted as boot")
|
2017-09-04 20:43:26 +10:00
|
|
|
end
|
2017-08-01 15:45:57 +10:00
|
|
|
end
|