From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 21 Nov 2003 06:53:59 +0000 Subject: Re: [udev] support arguments in callout exec Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Nov 20, 2003 at 01:47:36AM +0100, Arnd Bergmann wrote: > > Aside from that, it looks good. Maybe there should be a way to escape > spaces in the argument in case someone wants to do something like that: > > CALLOUT, PROGRAM="sh -c 'echo ${DEVPATH} | tr a-z A-Z'", BUS="usb", ID="XXX", NAME="webcam%n" Oh come on, why not just make that into a simple script, we're trying to keep udev simple :) > To take that even further, do you think it might be a good idea to > preprocess the string in the same way as the NAME= argument, allowing e.g. > PROGRAM="/bin/devname %b %M:%m" ? Hm, good idea. Someone else also proposed adding a number modifier to the %b field to pick out a specific character from a bus id. Anyone have any thoughts about this? Personally, I think it will be a bit hard to handle bus ids that are not fixed widths all the time, but might be handy to try to implement a devfs-like udev config file. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ 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