Re: check-debian-cd 1.10
Francesco Potorti` <firstname.lastname@example.org> writes:
> > check-debian-cd
> > looks in /dev/cdrom and cheks the disc. Or:
> Please also look in /dev/cdroms/* as devfs has it
> I just read about devfs. I suppose you suggest that checkiso (its name
> has changed lately) should read from all files in /dev/cdroms/ if it
> finds that /dev/cdroms/ exists, right?
> That is, doing something like:
> if /dev/cdroms/ exists
> read from all files there
> else if /dev/cdrom is readable
> read from there
> Would that work? I suppose I should give up with automatic recognition
> od scsi cdroms (those in /dev/sr[0-9]*), what do you think?
if devfs doesn't exist, you can check /proc for cdrom drives and/or
try /dev/hd[a-f] and /dev/scd[0-f].
Apart from that the pseudocode above is fine. Remember /dev/cdrom is
just a link setup during install.