Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- if disk.isPresent("right")~=true then
- print("No disk drive was detected in RIGHT disk drive.")
- print("A valid disk must be inserted in the correct drive.")
- else
- print("Disk ID is ".. disk.getID("right"))
- end
- print("What channel shall you use?")
- local channel = read()
- print("You chose channel ".. channel )
- if disk.isPresent()==true then
- if disk.hasData()==true then
- if disk.getLabel("right")~=clouddisk then
- disk.setLabel("right" "clouddisk")
- print("Disk has been labeled correctly.")
- end
- if fs.exist("disk\".. channel ..".log")==false then
- fs.makeDir("disk\".. channel ..".log")
- else
- print("Everything looks okay so far...")
- end
- end
- end
- print("Complete end.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement