On Fri, Mar 11, Kay Sievers wrote: > On Fri, 2005-03-11 at 08:38 -0500, Eric S. Raymond wrote: > > Kay Sievers : > > > Yeah, I'm all for doing this with udev rules. It is already working on > > > my box. We just need to agree if and how we should do that. The plan is > > > to add hotplug scripts with udev rules and execute scripts based on the > > > same rule logic we use to name the device node. > > > > > > Your hook into hotplug with a udev rule would look like this: > > > ACTION="add", SYSFS{vendor}="GPS", SYSFS{product}="0815", NAME="gps", HOTPLUG="/usr/bin/gps-something" > > > > Hmm, this looks interesting. I'm looking at the udev man page, and it looks > > as though rules like this might work: > > No, not today, not with the current version. We are just thought about > adding rule based program execution, cause it is similar to all the > match logic to name a device and it would be more elegant than the > current directory searching. Kay, your ideas are very good. Go on and make this happen. I like this way much more then the current multiplexer. -- ciao, christian 睡眠不足はいい仕事の敵だ。 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&opk _______________________________________________ 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