Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Gets constants, like peripheral sides and username
- ]]--
- term.clear()
- term.setCursorPos(1,1)
- term.write("Congratulations!")
- term.setCursorPos(1,2)
- term.write("AE Glass has been Installed.")
- term.setCursorPos(1,3)
- term.write("What side is your terminal glasses bridge on?: ")
- bridge = read()
- term.setCursorPos(1,4)
- term.write("What is your username?: ")
- username = read()
- term.setCursorPos(1,5)
- term.write("What side is your export bus on?: ")
- interface = read()
- options = {
- ["bridgeside"] = bridge,
- ["username"] = username,
- ["interfaceside"] = interface
- }
- if fs.exists(".options") then
- fs.delete(".options")
- end
- handle = fs.open(".options", "w")
- handle.write(textutils.serialize(options))
- handle.close()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement