View difference between Paste ID: ihE2Y61U and 625nvwaJ
SHOW: | | - or go back to the newest paste.
1
--[[ Note:
2
you have to name this something different than shutdown, otherwise it will get in a unstopable loop]]--
3
4
term.clear()
5
term.setCursorPos(1,1)
6
print("Logging Out")
7
sleep(2)
8
term.clear()
9
term.setCursorPos(1,1)
10
print("Shutting Down")
11
sleep(1)
12
write(". . . . . . . . . .")
13
sleep(2)
14
term.clear()
15
term.setCursorPos(1,1)
16
shell.run("shutdown")