Dan Nicholson wrote:
On 8/16/06, Chris Staub <[EMAIL PROTECTED]> wrote:
That's correct, although udevinfo works whether you specify /sys or
not. That should be explained, though. Actually, looking at
udevtest.c, it's supposed to strip off the leading /sys if it's given.
At least that's what the comment says. My lack of C knowledge is
really blowing this operation.
Anyway, thanks for the heads up, Chris. I'll try to get it into the book.
--
Dan
I've tried it several times with "/sys" in the path - it keeps giving
errors about not being able to open the device...
[EMAIL PROTECTED]:/home/chris/sources/lfs-svn/cross-lfs/trunk/BOOK# udevtest
/sys/block/sda
main: unable to open '/sys/block/sda'
[EMAIL PROTECTED]:/home/chris/sources/lfs-svn/cross-lfs/trunk/BOOK# udevtest
/block/sda
main: looking at device '/block/sda' from subsystem 'block'
run_program: 'usb_id -x'
run_program: '/lib/udev/usb_id' returned with status 1
run_program: 'scsi_id -g -x -s /block/sda -d /dev/.tmp-8-0'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_VENDOR=ATA'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_MODEL=HTS541010G9SA00'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_REVISION=MBZO'
run_program: '/lib/udev/scsi_id' (stdout)
'ID_SERIAL=SATA_HTS541010G9SA00_MP2ZH0X0GKK8KE'
......
[EMAIL PROTECTED]:/home/chris/sources/lfs-svn/cross-lfs/trunk/BOOK# udevtest
/sys/block/sr0
main: unable to open '/sys/block/sr0'
[EMAIL PROTECTED]:/home/chris/sources/lfs-svn/cross-lfs/trunk/BOOK# udevtest
/block/sr0
main: looking at device '/block/sr0' from subsystem 'block'
run_program: 'cdrom_id --export /dev/.tmp-11-0'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM=1'
......
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page