Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome to diamondOS media creation tool!")
- print("Press ENTER to flash '/disk' folder. \n(Please clean it first!)")
- print("Or press DELETE to close this program.")
- while true do
- local event, key = os.pullEvent("key")
- if event == "key" then
- if keys.getName(key) == "enter" then
- break
- elseif keys.getName(key) == "delete" then
- error()
- end
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Flashing...")
- sleep(1)
- shell.run("mkdir /disk/bios/")
- shell.run("mkdir /disk/diamondOS/")
- shell.run("mkdir /disk/diamondOS/os/")
- shell.run("mkdir /disk/diamondOS/os/boot")
- shell.run("mkdir /disk/diamondOS/os/bin/")
- shell.run("mkdir /disk/diamondOS/os/etc/")
- shell.run("mkdir /disk/diamondOS/os/home/")
- shell.run("mkdir /disk/diamondOS/os/lib/")
- shell.run("mkdir /disk/diamondOS/os/usr/bin")
- shell.run("mkdir /disk/temp/")
- shell.run("pastebin get xy5Xbu8d /disk/startup")
- shell.run("pastebin get 5Zbtsqcp /disk/bios/startup.bios")
- shell.run("pastebin get eggHuRDr /disk/diamondOS/os/usr/bin/sendFiles")
- shell.run("pastebin get XVFay6kL /disk/diamondOS/os/usr/bin/getFiles")
- shell.run("pastebin get n0TYWPg0 /disk/diamondOS/os/usr/bin/browser")
- shell.run("pastebin get pwwiMsxF /disk/diamondOS/os/usr/bin/player")
- shell.run("pastebin get 5Zbtsqcp /disk/diamondOS/os/boot/startup")
- shell.run("pastebin get WsCzE6yg /disk/diamondOS/os/boot/recovery.lua")
- shell.run("pastebin get Ss3Xm8Gs /disk/diamondOS/os/boot/boot.lua")
- shell.run("pastebin get PSp7HphJ /disk/diamondOS/os/boot/craftbootloader.lua")
- shell.run("pastebin get MKAUF1aB /disk/diamondOS/os/boot/init")
- shell.run("pastebin get dpELuj8e /disk/diamondOS/os/bin/back.lua")
- shell.run("pastebin get wXKUuzNx /disk/diamondOS/os/bin/.about")
- shell.run("pastebin get nH47yXMJ /disk/diamondOS/os/bin/.command")
- shell.run("pastebin get u5nCuSmc /disk/diamondOS/os/bin/.programs")
- shell.run("pastebin get T4hMDcjM /disk/diamondOS/os/bin/.shutdown")
- shell.run("pastebin get Z2TD7KJD /disk/diamondOS/os/bin/.sleep")
- shell.run("pastebin get w4XWgvcZ /disk/diamondOS/os/bin/install")
- shell.run("pastebin get dvFUiJ7k /disk/diamondOS/os/bin/.uninstall")
- shell.run("pastebin get zdSEmGNM /disk/diamondOS/os/bin/.UninstallDialog")
- shell.run("pastebin get NtKBPusE /disk/diamondOS/os/bin/BSOD")
- shell.run("pastebin get tdiZwXAi /disk/diamondOS/os/bin/main")
- shell.run("pastebin get 0iexJb9q /disk/diamondOS/os/bin/ncBSOD")
- shell.run("pastebin get GF9tLvZ6 /disk/diamondOS/os/bin/capule.lua")
- shell.run("pastebin get v5XWn99E /disk/diamondOS/os/lib/config.lua")
- shell.run("pastebin get u5BjvyFe /disk/diamondOS/os/lib/exceptions.lua")
- shell.run("pastebin get iLY3Jeuc /disk/diamondOS/os/lib/express.lua")
- shell.run("pastebin get PNEh7K7s /disk/diamondOS/os/lib/string.lua")
- shell.run("pastebin get MzrE4pWW /disk/diamondOS/os/lib/url.lua")
- shell.run("pastebin get kEqLGkrW /disk/diamondOS/os/lib/uuid.lua")
- shell.run("pastebin get 4BH1avUA /disk/diamondOS/os/lib/linq.lua")
- shell.run("pastebin get hkApunL4 /disk/diamondOS/os/lib/linc.lua")
- shell.run("pastebin get ZswRgdCB /disk/diamondOS/os/lib/cache.lua")
- shell.run("pastebin get bmE3aTzv /diak/diamondOS/os/lib/crypto/sha2.lua")
- shell.run("pastebin get swWJdc7X /diak/diamondOS/os/lib/args.lua")
- shell.run("pastebin get UCx4aiR0 /diak/diamondOS/os/lib/binary.lua")
- shell.run("pastebin get QyJL90XJ /diak/diamondOS/os/lib/cache.lua")
- shell.run("pastebin get abFf6TPB /diak/diamondOS/os/lib/logger.lua")
- shell.run("pastebin get TQxHVC6D /diak/diamondOS/os/lib/print-utils.lua")
- shell.run("pastebin get KUjYeHfm /diak/diamondOS/os/lib/stringbuilder.lua")
- shell.run("wget https://github.com/SiliconSloth/CryptoNet/raw/master/cryptoNet.lua /disk/diamondOS/os/lib/crypto/net/cryptoNet.lua")
- shell.run("wget https://gist.github.com/1lann/6604c8d3d8e5fdad0832/raw/9dee2620c504b44a1ea5c8882c0395110fcc38d7/rsa-crypt.lua /disk/diamondOS/os/lib/crypto/rsa.lua")
- shell.run("wget https://gist.github.com/1lann/c9d4d2e7c1f825cad36b/raw/d18b466be8a88eca32fa58e023270640cb57678d/rsa-keygen.lua /disk/diamondOS/os/lib/crypto/rsa_gen.lua")
- shell.run("pastebin get 8VTiuDBx /disk/temp/cancel.lua")
- shell.run("pastebin get pRKZLKge /disk/temp/install.lua")
- shell.run("pastebin get c80ZXcqT /disk/temp/.deletetemp.lua")
- term.clear()
- term.setCursorPos(1,1)
- print("Your floppy disk is ready! Now reboot system!")
Advertisement
Add Comment
Please, Sign In to add comment