Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- --this program is used when the Boot loader detects the system to be locked
- local UnlockCode = "admin"
- start()
- function start()
- term.setBackGroundColor("blue")
- Screen()
- end
- function Screen()
- term.setCursorPos(1,9)
- term.write("SYSTEM LOCKED, PLEASE BRING TO LOCAL")
- term.setCursorPos(1,10)
- term.write("GOV OFFICE FOR UNLOCKING")
- term.setCursorPos(1,11)
- term.write("if you have access, please enter Code")
- while true do
- local input = read()
- if input == UnlockCode then
- settings.get("SystemState","Ready")
- print("System Unlocked, restarting in 10 seconds")
- sleep(10)
- os.reboot
- end
- end
- end
- os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement