From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 24 Aug 2005 10:11:59 +0000 Subject: Re: [Thinstation-developer] Re: udev PROGRAM action Message-Id: <20050824101159.GA5943@vrfy.org> List-Id: References: <430C3C87.4080209@xtra.co.nz> In-Reply-To: <430C3C87.4080209@xtra.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Aug 24, 2005 at 09:23:19PM +1200, Miles Roper wrote: > KERNEL="sd*", ACTION="add", NAME="%k", RUN=+"/etc/udev/scripts/usb.sh %k" > KERNEL="sd*", ACTION="remove", NAME="%k", RUN=+"/etc/udev/scripts/usb.sh > %k" > > what i'm trying to achieve is hotpluging my usbkey. removing the NAME key > above still doesn't seem to work, infact it stops it from even calling the > script. the line now is > > KERNEL="sd*", BUS="usb", RUN=+"/etc/udev/scripts/usb.sh %k" > > if I remove the NAME key, how can I specify the device name I want in /dev? It will just get the default name. > Can I use the %k in above, as I need to pass this to the script so I know > which device to mount/umount? Yes, also the environment contains DEVNAME. Kay ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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