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