Advertisement
fudo

Untitled

Nov 2nd, 2017
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. -- Загрузчик позаимствован из MineOS
  2. -- за что им опять спасибо
  3. -- и переделан до неузнаваемости
  4. -- за что спасибо мне )))
  5.  
  6. --
  7. -- fudo.su
  8. --
  9. -- Сборка : Fudo LTS
  10. -- С долгосрочным обсуживанием
  11. -- Версия пакета : 0.2
  12. --
  13.  
  14. local term = require("term")
  15. local fs = require("filesystem")
  16. local shell = require("shell")
  17.  
  18.  
  19.  
  20. past1 = {"k7TQSJXJ","hpxFpDCy","xQAy801R","QqH4dxPh","LXn5EzuS","bm8XW8P9","w4yFHyFJ","QZmdC8pR","xC6ikGYi","t77aG1fG","4i7DfaSU","Jq42R3Yn","sx7MEZsV","sNwvNKuU","xm9YnWxZ","9VY6fmuD","hXbPiU3B","1ZWPeDeu","VZJwRDCF","fvbxKYbg","6KKc6xYK","JTWpxLu0","J6e6w6gi","UjuYfVa6","","","","","",""}
  21. past2 = {"HIPOS.lua","/HIPOS/nanobots.lua","/HIPOS/exit.lua","/HIPOS/Battleship.lua","/HIPOS/saper.lua","/HIPOS/copydisk.lua","/HIPOS/nc.lua","autorun.lua","/HIPOS/IconsPic/Battleship.pic","/HIPOS/IconsPic/Logo.pic","/HIPOS/IconsPic/LogoNano.pic","/HIPOS/IconsPic/folder.pic","/HIPOS/IconsPic/iconEXIT.pic","/HIPOS/IconsPic/iconNANO.pic","/HIPOS/IconsPic/iconNC.pic","/HIPOS/IconsPic/oslogoup.pic","/HIPOS/IconsPic/saper.pic","/lib/colorlib.lua","/lib/image.lua","/lib/advancedLua.lua","/lib/ECSAPI.lua","/lib/bridge.lua","/HIPOS/chat.lua","/HIPOS/IconsPic/chat.pic","","","","","",""}
  22. -- хххх КОМИТ хххх --
  23. -- изменен кастыль
  24. mfile = #past1+1
  25.  
  26.  
  27. if fs.get("bin/edit.lua") == nil or fs.get("bin/edit.lua").isReadOnly() then
  28. print("Floppy disk filesystem detected: type \"install\" in command line and install OpenOS to your HDD. After that run HIPOS installer again.")
  29. print(" ")
  30. else
  31. local icoPath = ""
  32. print("Downloading HIPOS | Fudo LTS...")
  33. fs.makeDirectory("/HIPOS/fudo/lts/IconsPic")
  34. i= 1
  35. term.clear()
  36. print ("+-----------------------------------+")
  37. print ("! File loading... ! Loaded : % !")
  38. print ("+===================================+")
  39. while i < mfile do
  40. term.setCursor(2,4)
  41. while 0 < 3 do
  42. print (" ")
  43. end
  44. term.setCursor (2,4)
  45. pst_cmd = "pastebin get -f "..past1[i].." "..past2[i]
  46. shell.execute(pst_cmd)
  47. --fs.makeDirectory(fs.path(installerPath))
  48. --fs.makeDirectory(fs.path(installerPath))
  49. --loadfile("/bin/wget.lua")("https://raw.githubusercontent.com/Installer.lua", installerPath, "-fq")
  50. --dofile(installerPath)
  51. term.setCursor(55,2)
  52. prt = 100/mfile
  53. prt = prt*i
  54. print (math.floor(prt))
  55. i = i + 1
  56.  
  57. end
  58.  
  59. end
  60. term.clear()
  61. shell.execute("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement