mirror of
https://github.com/kepler155c/opus
synced 2024-11-17 14:14:50 +00:00
16 lines
377 B
Lua
16 lines
377 B
Lua
|
-- Default label
|
||
|
if not os.getComputerLabel() then
|
||
|
showStatus('Setting computer label')
|
||
|
|
||
|
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
|
||
|
end
|