udevinfo query
It would be nice to be able to query for the full path to the node. This would make it easier to script things. Instead of "udevinfo -r" and "udevinfo -p /class/dri/card0 -q name", I could just do something like "udevinfo -p /class/dri/card0 -q fullname" and get back /udev/dri/card0
I tried "udevinfo -p /class/dri/card0 -q name" without udev running. It gives the error "device not found in database". udevinfo -r returns "/udev/". Shouldn't these messages be changed to indicate that udev is not mounted and running?
==Jon Smirl
[email protected]
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Jon Smirl
It would be nice to be able to query for the full path to the node. This would make it easier to script things. Instead of "udevinfo -r" and "udevinfo -p /class/dri/card0 -q name", I could just do something like "udevinfo -p /class/dri/card0 -q fullname" and get back /udev/dri/card0
You don't like man pages, or do you?
-r Print the the udev_root directory. When used
in conjunction with a query for the node name, the udev_root will be prepended.
/sbin/udevinfo -r -p /sys/class/video4linux/video0 -q name /udev/video/webcam0
Quoted 4 lines
I tried "udevinfo -p /class/dri/card0 -q name" without udev running. It gives the error "device not found in database". udevinfo -r returns "/udev/". Shouldn't these messages be changed to indicate that udev is not mounted and running?
What do you mean with 'running'?
If you have a database we query it, if you don't have it, we will fail with "unable to open udev database". That's perfectly ok, I think.
Kay
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel