diff --git a/modules/util/fs-automount.lua b/modules/util/fs-automount.lua index 6ac387c..69e51bf 100644 --- a/modules/util/fs-automount.lua +++ b/modules/util/fs-automount.lua @@ -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