Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = 1
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Detection des donnees systeme")
- sleep(1)
- if not fs.exists("XyodX") then
- textutils.slowPrint("Donnees manquantes, telechargement en cours")
- shell.run("mkdir XyodX")
- shell.run("cd XyodX")
- shell.run("mkdir User")
- shell.run("cd User")
- shell.run("mkdir User1")
- shell.run("mkdir User2")
- shell.run("cd User1")
- shell.run("mkdir Programs")
- shell.run("mkdir lock")
- shell.run("mkdir background")
- shell.run("cd ..")
- shell.run("cd User2")
- shell.run("mkdir Programs")
- shell.run("mkdir lock")
- shell.run("mkdir background")
- sleep(1)
- shell.run("reboot")
- else
- textutils.slowPrint("Donnees detecte, activation en cours")
- shell.run("cd XyodX")
- end
- sleep(1)
- textutils.slowPrint("quel systeme voulez vous utiliser?")
- print("X:Windows")
- print("X:Craft OS")
- while c == 1 do
- event, button, x, y = os.pullEvent("mouse_click")
- if x == 1 and y == 4 then
- shell.run("system")
- c = 0
- elseif x == 1 and y == 5 then
- term.clear()
- term.setCursorPos(1,1)
- c = 0
- shell.run("cd /")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement