From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 12 Jan 2004 21:21:30 +0000 Subject: Re: [PATCH] udev - advanced user query options Message-Id: <20040112212130.GB3911@kroah.com> List-Id: References: <20040111023300.GA4762@vrfy.org> In-Reply-To: <20040111023300.GA4762@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sun, Jan 11, 2004 at 03:33:00AM +0100, Kay Sievers wrote: > This patch improves the user options for udev. > It is possible now to query for the name, the symlinks or owner/group. > If asked for the name of the node we are able to prepend the udev_root > with the -r option. > > SAMPLE: > > kay@pim:~/src/udev.test$ ./udev -V > udev, version 012_bk > > kay@pim:~/src/udev.test$ ./udev -h > Usage: [-qrVh] > -q query database for the specified value > -p device path used for query > -r print udev root > -V print udev version > -h print this help text > > kay@pim:~/src/udev.test$ ./udev -r > /udev/ > > kay@pim:~/src/udev.test$ ./udev -q name -p /class/video4linux/video0 > video/webcam0 > > kay@pim:~/src/udev.test$ ./udev -q symlink -p /class/video4linux/video0 > camera0 kamera0 > > kay@pim:~/src/udev.test$ ./udev -q owner -p /class/video4linux/video0 > 501 > > kay@pim:~/src/udev.test$ ./udev -r -q name -p /class/video4linux/video0 > /udev/video/webcam0 Very nice, applied, thanks. Hm, care to update the man page with this information, and the '-h' option to explain queries a bit more? thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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