Advertisement
Electro40

OpernetOS Uninstaller

Nov 21st, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local shell = require('shell')
  2. function uninstall()
  3.   shell.execute('rm /home/.shrc')
  4.   shell.execute('rm -rf /Downloads/')
  5.   shell.execute('rm -rf /System/')
  6.   shell.execute('rm /bin/uninstall.lua')
  7.   print('Rebooting..')
  8.   require('computer').shutdown(true)
  9. end
  10. require('term').clear()
  11. print('Sorry to see you go! Want to fill in our survey?')
  12. print('Survey: https://goo.gl/forms/HVvUcRCMVEUbQgnb2')
  13. print('Uninstall OpernetOS? [Y/n]')
  14. local input = io.read()
  15. if input == 'y' or input == 'Y' then
  16.   print('Uninstalling..')
  17.   uninstall()
  18. else
  19.   print('Canceled.')
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement