kizz12

KOSInstall

Apr 21st, 2015
1,313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.37 KB | None | 0 0
  1. print'Welcome to the KOS Installer!'
  2.  
  3. print'Warning, this will delete any startup file, and create multiple files. Are you sure you wish to continue? Y to continue. N to cancel'
  4. continue=read()
  5. if continue=="y" or continue=="Y" then
  6. print'Beginning install...'
  7.  
  8. fileList=fs.list("")
  9.  
  10. for _, file in ipairs(fileList) do
  11. if file=="edit" then fs.delete("edit") print'Deleted edit' end
  12. if file=="extend" then fs.delete("extend") print'Deleted extended' end
  13. if file=="guest" then fs.delete("guest") print'Deleted guest' end
  14. if file=="help" then fs.delete("help") print'Deleted help' end
  15. if file=="logout" then fs.delete("logout") print'Deleted logout' end
  16. if file=="master" then fs.delete("master") print'Deleted master' end
  17. if file=="newuser" then fs.delete("newuser") print'Deleted newuser' end
  18. if file=="startup" then fs.delete("startup") print'Deleted startup' end
  19. if file=="users" then fs.delete("users") print'Deleted users' end
  20. if file=="log" then fs.delete("log") print'Deleted log' end
  21. if file=="delete" then fs.delete("delete") print'Deleted delete' end
  22. if file=="gui" then fs.delete("gui") print'Deleted gui' end
  23. if file=="guiapi" then fs.delete("guiapi") print'Deleted guiapi' end
  24. if file=="touchpoint" then fs.delete("touchpoint") print'Deleted touchpoint API' end
  25. end --End the loop
  26.  
  27.  
  28. print'Creating edit'
  29. shell.run("pastebin","get","jEpijeNB","edit" )
  30.  
  31. print'Creating extend'
  32. shell.run("pastebin","get","Dtujsd4d","extend" )
  33.  
  34. print'Creating guest'
  35. shell.run("pastebin","get","RAJLtn5N","guest" )
  36.  
  37. print'Creating help'
  38. shell.run("pastebin","get","hBJipbvg","help" )
  39.  
  40. print'Creating logout'
  41. shell.run("pastebin","get","0axZTkq1","logout" )
  42.  
  43. print'Creating master'
  44. shell.run("pastebin","get","13PH5gCe","master" )
  45.  
  46. print'Creating newuser'
  47. shell.run("pastebin","get","1XxLRmJS","newuser" )
  48.  
  49. print'Creating startup'
  50. shell.run("pastebin","get","6Qfs7sNq","startup" )
  51.  
  52. print'Creating delete'
  53. shell.run("pastebin","get","4SJ478es","delete" )
  54.  
  55. print'Creating gui'
  56. shell.run("pastebin","get","39MNtZbR","gui" )
  57.  
  58. print'Creating guiapi'
  59. shell.run("pastebin","get","QY2RC1Uu","guiapi" )
  60.  
  61. print'Creating touchpoint'
  62. shell.run("pastebin","get","Sczni8A5","touchpoint" )
  63.  
  64. local timer=5
  65.  
  66. while timer~=0 do
  67. print("Rebooting in "..timer )
  68. sleep(1)
  69. timer=timer-1
  70. end
  71. os.reboot()
  72. end
  73.  
  74.  
  75.  
  76. if continue~="y" and continue~="Y" then
  77. print'Cancelling install!'
  78. end
Advertisement
Add Comment
Please, Sign In to add comment