.
This commit is contained in:
parent
02ca381676
commit
5ddace7edf
@ -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
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user