1
0
mirror of https://github.com/kepler155c/opus synced 2025-02-06 12:10:02 +00:00
opus/sys/init/4.label.lua

16 lines
341 B
Lua
Raw Normal View History

2018-01-20 07:18:13 -05:00
local os = _G.os
2018-01-14 16:44:43 -05:00
-- Default label
if not os.getComputerLabel() then
2018-01-24 17:39:38 -05:00
local id = os.getComputerID()
if _G.turtle then
os.setComputerLabel('turtle_' .. id)
elseif _G.pocket then
os.setComputerLabel('pocket_' .. id)
elseif _G.commands then
os.setComputerLabel('command_' .. id)
else
os.setComputerLabel('computer_' .. id)
end
2018-01-14 16:44:43 -05:00
end