1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 18:57:41 +00:00

transition to kernel

This commit is contained in:
kepler155c@gmail.com
2018-01-14 16:44:43 -05:00
parent 9de9452dd3
commit 30dd2a2b16
7 changed files with 113 additions and 111 deletions

View File

@@ -0,0 +1,15 @@
-- 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