Advertisement
Guest User

shutdown

a guest
Feb 25th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. vs = "[BOS 1.2]"
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print(vs)
  5. print(" ")
  6. print("Confrim Shutdown? [Y/N]")
  7. print(" ")
  8. write("> ")
  9. input = read()
  10. if input == "y" then
  11.  print("Shutting Down...")
  12.  sleep(2)
  13.  os.shutdown()
  14.  else
  15.  print("Shutdown Canceled")
  16.  sleep(2)
  17.  term.clear()
  18.  term.setCursorPos(1,1)
  19.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement