This commit is contained in:
Julian Brammer 2024-06-08 22:40:30 +02:00
parent 02ca381676
commit 5ddace7edf
2 changed files with 1 additions and 6 deletions

View File

@ -2,12 +2,9 @@ local basic = require("lib.basic")
local hash = require("lib.hash") local hash = require("lib.hash")
local systemConfig = basic.readFileAll("/brulijam/config/systemConfig.txt") local systemConfig = basic.readFileAll("/brulijam/config/systemConfig.txt")
systemConfig = textutils.serialize(systemConfig) systemConfig = textutils.unserialize(systemConfig)
if os.getComputerLabel() == nil then if os.getComputerLabel() == nil then
local labelMainPart = string.sub(hash.digestStr(string.format(os.getComputerID())), 1, 6) local labelMainPart = string.sub(hash.digestStr(string.format(os.getComputerID())), 1, 6)
print(labelMainPart)
print(systemConfig["labelPrefix"])
sleep(5)
os.setComputerLabel(systemConfig["labelPrefix"] .. "-" .. labelMainPart) os.setComputerLabel(systemConfig["labelPrefix"] .. "-" .. labelMainPart)
end end

View File

@ -92,8 +92,6 @@ local function unlockDevice()
end end
local function shellRun() local function shellRun()
print("running shell")
sleep(5)
shell.run("shell") shell.run("shell")
end end