From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Tue, 18 Sep 2007 19:21:05 +0000 Subject: Re: Writing udev Rules by Daniel Drake (dsd) Version 0.72 Message-Id: <200709182121.07009.zzam@gentoo.org> List-Id: References: <46F015F6.6030908@xplornet.com> In-Reply-To: <46F015F6.6030908@xplornet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Dienstag, 18. September 2007, Robby Workman wrote: > I think this is closer to what you want -- note that the rule contents > come from the udevinfo output. Also note that I didn't change the > NAME of the device node assigned - that's just not a good idea IMHO. > > SUBSYSTEMS="usb", \ > ATTRS{serial}="0000160EF172FFE1", \ > ATTRS{product}="U3 Cruzer Micro", \ > ATTRS{manufacturer}="SanDisk Corporation", \ > NAME="%k", SYMLINK+="MICRO2GB" > If you already consider changing NAME not a good idea I suggest to completely delete NAME=... from the rule. Then other rules intended to change NAME can do this. And the symlink will in every case point to the correct device. If NAME does not get set in any rule it still defaults to "%k". Matthias -- Matthias Schwarzott (zzam) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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