[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installation test report: 1997-04-04



nick@Feedback.com.ar (Nicolás Lichtmaier)  wrote on 09.04.97 in <[🔎] Pine.LNX.3.96.970409003331.476B-100000@newton>:

>  I have an idea (maybe a bit ugly =)). Why don't we parse the kernel boot
> messages to find devices? =)
>
> Look:
>
> hda: WDC AC21000H, 1033MB w/128kB Cache, LBA, CHS=2100/16/63
> hdb: QUANTUM LPS540A, 516MB w/96kB Cache, CHS=1120/16/59
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>
> and "dmesg | grep hd.: .*CHS=.*/../.." would find IDE drives... the same
> could be done woth other devices too. I know, it's ugly and kernel version
> dependant, but the kernel is currently missing clean ways to get info
> about installed devices. And polling each /dev/*, isn't clean either,
> IMHO...

If the info you get that way isn't yet available in /proc, it should be.

MfG Kai


Reply to: