Update settings.lua

This commit is contained in:
Ale32bit 2015-11-10 19:14:27 +01:00
parent eef211e162
commit 8137ee6c1d

View file

@ -4,6 +4,8 @@ local pwChangeRep
local menu = {
"Update",
"Change Password",
"Set Label",
"Clear Label",
}
local function clear()
@ -124,6 +126,20 @@ local function changePassword()
return
end
local function changeLabel()
header()
sertextext.center(3, "Set Label")
term.setCursorPos(2,5)
local newLabel = read()
os.setComputerLabel(newLabel)
sPhone.winOk("Computer Label set")
end
local function clearLabel()
os.setComputerLabel(nil)
sPhone.winOk("Computer Label cleared")
end
local w, h = term.getSize()
local function redraw()