FoxWorn3365

HackOS - Installation

Dec 4th, 2021 (edited)
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. function modi(file, cont)
  2. local h = fs.open(file, "w")
  3. h.writeLine(cont)
  4. h.flush()
  5. h.close()
  6. end
  7.  
  8. -- Creo le prime directory
  9. shell.run("mkdir /Hack/")
  10. shell.run("mkdir /Hack/files/")
  11. shell.run("mkdir /Hack/programmi/")
  12. shell.run("mkdir /Hack/programmi/settings/")
  13. shell.run("mkdir /Hack/programmi/fileManager/")
  14. shell.run("mkdir /Hack/programmi/store/")
  15. shell.run("mkdir /Hack/programmi/leNet/")
  16.  
  17. -- Creo i file
  18. modi("/Hack/programmi/settings/app.name", "Imp.")
  19. modi("/Hack/programmi/fileManager/app.name", "FMan")
  20. modi("/Hack/programmi/store/app.name", "Store")
  21. modi("/Hack/programmi/leNet/app.name", "LeNet")
  22.  
  23. -- Recupero le icone ed i file necessari all'avvio
  24. -- Applicazioni eseguibili
  25. shell.run("pastebin get AQX6gG3e /startup")
  26. shell.run("pastebin get EKH7AzbK /Hack/programmi/settings/exec.luaDir")
  27. shell.run("pastebin get 4auWPCSL /Hack/programmi/fileManager/exec.luaDir")
  28. shell.run("pastebin get 8yUDr8Yt /Hack/programmi/leNet/exec.luaDir")
  29. shell.run("pastebin get B0TnDgED /Hack/programmi/store/exec.luaDir")
  30. shell.run("pastebin get ZyEEJig6 /desktop")
  31. -- Icone
  32. shell.run("pastebin get HKP8t6T6 /Hack/sfondo.png")
  33.  
  34. -- AA1
  35. modi("/Hack/programmi/settings/app.ico", " 77 \n7 7\n 77 ")
  36. modi("/Hack/programmi/fileManager/app.ico", " 111\n4444\n4444")
  37. modi("/Hack/programmi/leNet/app.ico", "3\n3\n3333")
  38. modi("/Hack/programmi/store/app.ico", "1144\n7777\n7777")
  39.  
  40. shell.run("rm disk/startup")
  41.  
  42. shell.run("reboot")
  43.  
Add Comment
Please, Sign In to add comment