.
This commit is contained in:
parent
6ed699395f
commit
e8d1c01fb7
@ -4,7 +4,7 @@ local hash = require("lib.hash")
|
||||
local systemConfig = basic.readFileAll("/brulijam/config/system.config")
|
||||
systemConfig = textutils.unserialize(systemConfig)
|
||||
|
||||
if os.getComputerLabel() == nil then
|
||||
if os.getComputerLabel() == nil or os.getComputerLabel() == "" then
|
||||
local labelMainPart = string.sub(hash.digestStr(string.format(os.getComputerID())), 1, 6)
|
||||
os.setComputerLabel(systemConfig["labelPrefix"] .. "-" .. labelMainPart)
|
||||
end
|
Loading…
Reference in New Issue
Block a user