Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Functions
- function clearScreen()
- term.clear()
- term.setCursorPos(1,1)
- end
- function openModem()
- for i,v in pairs(rs.getSides()) do
- if peripheral.getType(v) == "modem" then
- if not rednet.isOpen(v) then rednet.open(v) end
- return true end
- end
- return false end
- --Start doing stuff
- clearScreen()
- print("Welcome to TypOS v. 0.1 Alpha")
- print("Attempting to open modem...")
- openModem()
- local output = openModem()
- if output = true then
- print("Opened modem successfully!")
- elseif output = false then
- print("There was an error in opening your modem.")
- print("TypOS will run in off-line mode")
- offline = true
- end
Advertisement
Add Comment
Please, Sign In to add comment