This commit is contained in:
Julian Brammer 2024-06-08 19:19:57 +02:00
parent 551c2d467a
commit e5be22c8e1

View File

@ -26,7 +26,7 @@ shell.run("/brulijam/sync.lua")
--set label if not set --set label if not set
if os.getComputerLabel == nil then if os.getComputerLabel() == nil then
print("wuauw") print("wuauw")
local labelMainPart = string.sub(hash.digestStr(os.getComputerID()), 1, 6) local labelMainPart = string.sub(hash.digestStr(os.getComputerID()), 1, 6)
os.setComputerLabel(labelPrefix .. "-" .. labelMainPart) os.setComputerLabel(labelPrefix .. "-" .. labelMainPart)