From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 27 Jan 2004 07:12:41 +0000 Subject: Re: udevinfo query Message-Id: <20040127071241.GA12286@vrfy.org> List-Id: References: <20040127030511.18446.qmail@web14914.mail.yahoo.com> In-Reply-To: <20040127030511.18446.qmail@web14914.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Jan 26, 2004 at 07:05:11PM -0800, Jon Smirl wrote: > 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 > 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel