Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local tArg = {...}
- local PoweroffTime = 4
- local function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- local function Screen()
- term.setBackgroundColor(colors.blue)
- Clear()
- print("Powering off")
- print("==Closing==")
- end
- local function Complete()
- print("Completed")
- print("Signing out")
- os.sleep(3)
- if tArg[1] == "shutdown" then
- os.shutdown()
- elseif tArg[1] == "restart" then
- os.reboot()
- end
- end
- Screen()
- os.sleep(PoweroffTime)
- Complete()
Advertisement
Add Comment
Please, Sign In to add comment