From b60a7161abf0d5e39cc4f18411718b4c50272166 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 5 Sep 2017 19:43:46 +1000 Subject: [PATCH] made fs-automount quiet, now uses log() --- modules/util/fs-automount.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/util/fs-automount.lua b/modules/util/fs-automount.lua index 2af3640..289ea9f 100644 --- a/modules/util/fs-automount.lua +++ b/modules/util/fs-automount.lua @@ -3,23 +3,23 @@ do for c in component.list("filesystem") do if c == computer.tmpAddress() then fs.mount("tmp",component.proxy(c)) - print(c:sub(1,8).." mounted as tmp") + log(c:sub(1,8).." mounted as tmp") end if c == computer.getBootAddress() then fs.mount("boot",component.proxy(c)) - print(c:sub(1,8).." mounted as boot") + log(c:sub(1,8).." mounted as boot") end if component.invoke(c,"getLabel") ~= "" and component.invoke(c,"getLabel") ~= nil then 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 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 end if component.type(computer.getBootAddress()) ~= "filesystem" then 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 if component.type(computer.getBootAddress()) == "tape_drive" then if tape then