Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local Keys = {}
- local UserKeys = {}
- local KeyId = 1000
- local ReqFolders = {"os","os/UI","os/UI/Icons","os/UI/DesktopIcons","os/Desktop_Shortcuts","os/Handlers","os/System","os/System/Tools","os/System/Programs","os/System/Users","os/System/Users/Guest","os/Files","os/Files/Banking","os/Files/Logs","startup","boot","boot/files"}
- local ReqFiles = {{"Dj6AY1JW","startup/bootA.lua",false},{"AYCR8qRN","startup/AliasManager.lua",false},{"KFcXABJa","os/System/Tools/App.lua",false},{"C3Un6Mmn","os/System/Tools/Sec.lua",falsw},{"QMcGUYAC","os/Handlers/GraphicsHandler.lua",false},{"pvXZ6DW8","os/Handlers/PocketDesktop.lua",false},{"kK7z4g08","os/Handlers/NetworkReceiver.lua",false},{"Ep9RSq9f","os/System/Programs/DirectTransmitter.lua",false},{"8kDwdcJU","os/System/Programs/SettingsApp.lua",false},{"Z6P5R0Gs","os/System/Tools/fsAdv.lua",false},{"WVxS8wgb","boot/APIloader.lua",false},{"H5XDHTgv","os/System/Programs/VideoPlayer.lua",false},{"MGLhj3mf","os/Handlers/ProcessManager.lua",false},{"WR2j5itY","os/System/Programs/PocketMaps.lua",false},{"ajSm80J7","os/System/Programs/BankingApp.lua",false},{"fW1YyvYj","os/System/Programs/Help.lua",false}}
- local ReqDeskShortcuts = {{"Settings.lnk","os/System/Programs/SettingsApp.lua","Settings","os/UI/DesktopIcons/SettingsIcon.nfp"},{"Help.lnk","os/System/Programs/Help.lua","Help","os/UI/DesktopIcons/Default5x4Icon.nfp"},{"PMaps.lnk","os/System/Programs/PocketMaps.lua","PMaps","os/UI/DesktopIcons/Default5x4Icon.nfp"},{"Banking.lnk","os/System/Programs/BankingApp.lua","Banking","os/UI/DesktopIcons/Default5x4Icon.nfp"}}
- local ImageDownloadCode = ""
- function SetupFolders()
- for i = 1, #ReqFolders do
- fs.makeDir(ReqFolders[i])
- end
- end
- function DownloadFiles()
- for i = 1, #ReqFiles do
- shell.run("pastebin","get",ReqFiles[i][1],ReqFiles[i][2])
- CreateKey(ReqFiles[i][2],ReqFiles[i][3])
- end
- end
- function SetupDeskShortcuts()
- for i = 1, #ReqDeskShortcuts do
- local file = fs.open(fs.combine("os/Desktop_Shortcuts",ReqDeskShortcuts[i][1]),"w")
- file.writeLine(ReqDeskShortcuts[i][2])
- file.writeLine(ReqDeskShortcuts[i][3])
- file.writeLine(ReqDeskShortcuts[i][4])
- file.close()
- CreateKey(fs.combine("os/Desktop_Shortcuts",ReqDeskShortcuts[i][1]),true)
- end
- end
- function CreateKey(file,Access)
- Keys[#Keys + 1] = {file,KeyId}
- if Access == true then UserKeys[#UserKeys + 1] = KeyId end
- KeyId = KeyId + 1
- end
- local w, h = term.getSize()
- SetupFolders()
- DownloadFiles()
- SetupDeskShortcuts()
- local Line = "9b"
- for I = 1, w/2 do
- Line = Line.."9b"
- end
- local D1 = fs.open("os/UI/Dropdown_Back1.nfp","w")
- for i = 1, h do
- D1.writeLine(Line)
- end
- D1.close()
- CreateKey("os/UI/Dropdown_Back1.nfp",false)
- local Guest = fs.open("os/System/Users/Guest/UserAccount.txt","w")
- Guest.writeLine("os/UI/Icons/UserDefaultPortrait.nfp")
- Guest.writeLine("n")
- Guest.writeLine(3)
- Guest.close()
- CreateKey("os/System/Users/Guest/UserAccount.txt",false)
- local Im = fs.open("os/UI/DesktopIcons/Default5x4Icon.nfp","w")
- Im.writeLine("44f44")
- Im.writeLine("47774")
- Im.writeLine("47774")
- Im.writeLine("44e44")
- Im.close()
- CreateKey("os/UI/DesktopIcons/Default5x4Icon.nfp",false)
- local SettIm = fs.open("os/UI/DesktopIcons/SettingsIcon.nfp","w")
- SettIm.writeLine(" 888 ")
- SettIm.writeLine("80778")
- SettIm.writeLine("87788")
- SettIm.writeLine(" 888 ")
- SettIm.close()
- CreateKey("os/UI/DesktopIcons/SettingsIcon.nfp",false)
- local Prof = fs.open("os/UI/Icons/UserDefaultPortrait.nfp","w")
- Prof.writeLine(" 444 ")
- Prof.writeLine(" 747 ")
- Prof.writeLine(" 111 ")
- Prof.writeLine("bbbbbbb")
- Prof.writeLine("bbbbbbb")
- Prof.close()
- CreateKey("os/UI/Icons/UserDefaultPortrait.nfp",false)
- shell.run("pastebin","get","GSu8X8k0","os/UI/Desk_Back1.nfp")
- CreateKey("os/UI/Desk_Back1.nfp",false)
- shell.run("pastebin","get","KEAf1kWP","os/UI/Dropdown_Back2.nfp")
- CreateKey("os/UI/Dropdown_Back2.nfp",false)
- shell.run("pastebin","get","aKwyx4NP","os/UI/Desk_Back2.nfp")
- CreateKey("os/UI/Desk_Back2.nfp",false)
- shell.run("pastebin","get","MGaLDnkP","os/BootCompletion.vid")
- CreateKey("os/BootCompletion.vid",true)
- local Proto = fs.open("os/Files/ProgramNetworkProtocols.txt","w")
- Proto.writeLine("os/System/Alerts.lua = 5656")
- Proto.close()
- CreateKey("os/Files/ProgramNetworkProtocols.txt",false)
- local Dir = fs.open("os/Directorys.txt","w")
- Dir.writeLine("rom/boot")
- Dir.writeLine("os/settings.txt")
- Dir.writeLine("boot/files/apis.txt")
- Dir.writeLine("os/System/Tools")
- Dir.writeLine("os/Desktop_Shortcuts")
- Dir.close()
- CreateKey("os/Directorys.txt",false)
- local Info = fs.open("os/systemCertificate.txt","w")
- Info.writeLine("1.0.0")
- Info.writeLine(os.getComputerID())
- Info.writeLine(os.date("1"))
- Info.writeLine("Base")
- Info.close()
- CreateKey("os/SystemCertificate.txt",false)
- settings.load("os/settings.txt")
- settings.clear()
- settings.set("screen_maxHeight",26)
- settings.set("screen_desktop_background","os/UI/Desk_Back2.nfp")
- settings.set("screen_dropdown_background","os/UI/Dropdown_Back2.nfp")
- settings.set("os_activated",false)
- settings.set("active_user","Guest")
- CreateKey("os/settings.txt",false)
- if tArg[1] ~= nil then
- local User = fs.open(fs.combine("os/System/Users",tArg[1],"UserAccount.txt"),"w")
- User.writeLine("os/UI/Icons/UserDefaultPortrait.nfp")
- User.writeLine("n")
- User.writeLine(2)
- User.close()
- end
- settings.save("os/settings.txt")
- shell.run("startup/AliasManager.lua","setup")
- shell.run("startup/AliasManager.lua","add","os/System/Programs/VideoPlayer.lua","Player")
- shell.run("startup/AliasManager.lua","add","os/Handlers/ProcessManager.lua","System")
- shell.run("boot/APIloader.lua","setup")
- local KeyFile = fs.open("os/Files/ProgramKeys.txt","w")
- KeyFile.write(textutils.serialize(Keys))
- KeyFile.close()
- local UserKeyFile = fs.open("os/System/Users/Guest/UserKeys.txt","w")
- UserKeyFile.write(textutils.serialize(UserKeys))
- UserKeyFile.close()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement