I'm stupid sometimes
This commit is contained in:
parent
00d4472f91
commit
a05e19b545
@ -2,7 +2,7 @@ local fsmanager = {}
|
|||||||
fsmanager.filesystems = {}
|
fsmanager.filesystems = {}
|
||||||
local run = true
|
local run = true
|
||||||
|
|
||||||
local function fsmanager.mount(addr)
|
function fsmanager.mount(addr)
|
||||||
dest = "/" .. (component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3))
|
dest = "/" .. (component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3))
|
||||||
syslog("Mounting "..addr.." to "..dest)
|
syslog("Mounting "..addr.." to "..dest)
|
||||||
fs.makeDirectory(dest)
|
fs.makeDirectory(dest)
|
||||||
|
Loading…
Reference in New Issue
Block a user