Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function modi(file, cont)
- local h = fs.open(file, "w")
- h.writeLine(cont)
- h.flush()
- h.close()
- end
- -- Creo le prime directory
- shell.run("mkdir /Hack/")
- shell.run("mkdir /Hack/files/")
- shell.run("mkdir /Hack/programmi/")
- shell.run("mkdir /Hack/programmi/settings/")
- shell.run("mkdir /Hack/programmi/fileManager/")
- shell.run("mkdir /Hack/programmi/store/")
- shell.run("mkdir /Hack/programmi/leNet/")
- -- Creo i file
- modi("/Hack/programmi/settings/app.name", "Imp.")
- modi("/Hack/programmi/fileManager/app.name", "FMan")
- modi("/Hack/programmi/store/app.name", "Store")
- modi("/Hack/programmi/leNet/app.name", "LeNet")
- -- Recupero le icone ed i file necessari all'avvio
- -- Applicazioni eseguibili
- shell.run("pastebin get AQX6gG3e /startup")
- shell.run("pastebin get EKH7AzbK /Hack/programmi/settings/exec.luaDir")
- shell.run("pastebin get 4auWPCSL /Hack/programmi/fileManager/exec.luaDir")
- shell.run("pastebin get 8yUDr8Yt /Hack/programmi/leNet/exec.luaDir")
- shell.run("pastebin get B0TnDgED /Hack/programmi/store/exec.luaDir")
- shell.run("pastebin get ZyEEJig6 /desktop")
- -- Icone
- shell.run("pastebin get HKP8t6T6 /Hack/sfondo.png")
- -- AA1
- modi("/Hack/programmi/settings/app.ico", " 77 \n7 7\n 77 ")
- modi("/Hack/programmi/fileManager/app.ico", " 111\n4444\n4444")
- modi("/Hack/programmi/leNet/app.ico", "3\n3\n3333")
- modi("/Hack/programmi/store/app.ico", "1144\n7777\n7777")
- shell.run("rm disk/startup")
- shell.run("reboot")
Add Comment
Please, Sign In to add comment