made fs-automount not crash the system when running under ocvm

This commit is contained in:
Izaya 2017-08-03 09:10:02 +10:00
parent fcf9599abe
commit 31e5c5a54b

View File

@ -9,7 +9,7 @@ do
fs.mount("boot",component.proxy(c))
print(c:sub(1,8).." mounted as boot")
end
if component.invoke(c,"getLabel") ~= "" then
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"))
end