Z1maV1

bootCreator

Aug 7th, 2022 (edited)
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.33 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Welcome to diamondOS media creation tool!")
  4. print("Press ENTER to flash '/disk' folder. \n(Please clean it first!)")
  5. print("Or press DELETE to close this program.")
  6. while true do
  7.     local event, key = os.pullEvent("key")
  8.     if event == "key" then
  9.         if keys.getName(key) == "enter" then
  10.             break
  11.         elseif keys.getName(key) == "delete" then
  12.             error()
  13.         end
  14.     end
  15. end
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. print("Flashing...")
  19. sleep(1)
  20. shell.run("mkdir /disk/bios/")
  21. shell.run("mkdir /disk/diamondOS/")
  22. shell.run("mkdir /disk/diamondOS/os/")
  23. shell.run("mkdir /disk/diamondOS/os/boot")
  24. shell.run("mkdir /disk/diamondOS/os/bin/")
  25. shell.run("mkdir /disk/diamondOS/os/etc/")
  26. shell.run("mkdir /disk/diamondOS/os/home/")
  27. shell.run("mkdir /disk/diamondOS/os/lib/")
  28. shell.run("mkdir /disk/diamondOS/os/usr/bin")
  29. shell.run("mkdir /disk/temp/")
  30. shell.run("pastebin get xy5Xbu8d /disk/startup")
  31. shell.run("pastebin get 5Zbtsqcp /disk/bios/startup.bios")
  32. shell.run("pastebin get eggHuRDr /disk/diamondOS/os/usr/bin/sendFiles")
  33. shell.run("pastebin get XVFay6kL /disk/diamondOS/os/usr/bin/getFiles")
  34. shell.run("pastebin get n0TYWPg0 /disk/diamondOS/os/usr/bin/browser")
  35. shell.run("pastebin get pwwiMsxF /disk/diamondOS/os/usr/bin/player")
  36. shell.run("pastebin get 5Zbtsqcp /disk/diamondOS/os/boot/startup")
  37. shell.run("pastebin get WsCzE6yg /disk/diamondOS/os/boot/recovery.lua")
  38. shell.run("pastebin get Ss3Xm8Gs /disk/diamondOS/os/boot/boot.lua")
  39. shell.run("pastebin get PSp7HphJ /disk/diamondOS/os/boot/craftbootloader.lua")
  40. shell.run("pastebin get MKAUF1aB /disk/diamondOS/os/boot/init")
  41. shell.run("pastebin get dpELuj8e /disk/diamondOS/os/bin/back.lua")
  42. shell.run("pastebin get wXKUuzNx /disk/diamondOS/os/bin/.about")
  43. shell.run("pastebin get nH47yXMJ /disk/diamondOS/os/bin/.command")
  44. shell.run("pastebin get u5nCuSmc /disk/diamondOS/os/bin/.programs")
  45. shell.run("pastebin get T4hMDcjM /disk/diamondOS/os/bin/.shutdown")
  46. shell.run("pastebin get Z2TD7KJD /disk/diamondOS/os/bin/.sleep")
  47. shell.run("pastebin get w4XWgvcZ /disk/diamondOS/os/bin/install")
  48. shell.run("pastebin get dvFUiJ7k /disk/diamondOS/os/bin/.uninstall")
  49. shell.run("pastebin get zdSEmGNM /disk/diamondOS/os/bin/.UninstallDialog")
  50. shell.run("pastebin get NtKBPusE /disk/diamondOS/os/bin/BSOD")
  51. shell.run("pastebin get tdiZwXAi /disk/diamondOS/os/bin/main")
  52. shell.run("pastebin get 0iexJb9q /disk/diamondOS/os/bin/ncBSOD")
  53. shell.run("pastebin get GF9tLvZ6 /disk/diamondOS/os/bin/capule.lua")
  54. shell.run("pastebin get v5XWn99E /disk/diamondOS/os/lib/config.lua")
  55. shell.run("pastebin get u5BjvyFe /disk/diamondOS/os/lib/exceptions.lua")
  56. shell.run("pastebin get iLY3Jeuc /disk/diamondOS/os/lib/express.lua")
  57. shell.run("pastebin get PNEh7K7s /disk/diamondOS/os/lib/string.lua")
  58. shell.run("pastebin get MzrE4pWW /disk/diamondOS/os/lib/url.lua")
  59. shell.run("pastebin get kEqLGkrW /disk/diamondOS/os/lib/uuid.lua")
  60. shell.run("pastebin get 4BH1avUA /disk/diamondOS/os/lib/linq.lua")
  61. shell.run("pastebin get hkApunL4 /disk/diamondOS/os/lib/linc.lua")
  62. shell.run("pastebin get ZswRgdCB /disk/diamondOS/os/lib/cache.lua")
  63. shell.run("pastebin get bmE3aTzv /diak/diamondOS/os/lib/crypto/sha2.lua")
  64. shell.run("pastebin get swWJdc7X /diak/diamondOS/os/lib/args.lua")
  65. shell.run("pastebin get UCx4aiR0 /diak/diamondOS/os/lib/binary.lua")
  66. shell.run("pastebin get QyJL90XJ /diak/diamondOS/os/lib/cache.lua")
  67. shell.run("pastebin get abFf6TPB /diak/diamondOS/os/lib/logger.lua")
  68. shell.run("pastebin get TQxHVC6D /diak/diamondOS/os/lib/print-utils.lua")
  69. shell.run("pastebin get KUjYeHfm /diak/diamondOS/os/lib/stringbuilder.lua")
  70. shell.run("wget https://github.com/SiliconSloth/CryptoNet/raw/master/cryptoNet.lua /disk/diamondOS/os/lib/crypto/net/cryptoNet.lua")
  71. shell.run("wget https://gist.github.com/1lann/6604c8d3d8e5fdad0832/raw/9dee2620c504b44a1ea5c8882c0395110fcc38d7/rsa-crypt.lua /disk/diamondOS/os/lib/crypto/rsa.lua")
  72. shell.run("wget https://gist.github.com/1lann/c9d4d2e7c1f825cad36b/raw/d18b466be8a88eca32fa58e023270640cb57678d/rsa-keygen.lua /disk/diamondOS/os/lib/crypto/rsa_gen.lua")
  73. shell.run("pastebin get 8VTiuDBx /disk/temp/cancel.lua")
  74. shell.run("pastebin get pRKZLKge /disk/temp/install.lua")
  75. shell.run("pastebin get c80ZXcqT /disk/temp/.deletetemp.lua")
  76.  
  77. term.clear()
  78. term.setCursorPos(1,1)
  79. print("Your floppy disk is ready! Now reboot system!")
Advertisement
Add Comment
Please, Sign In to add comment