linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Writing udev Rules by Daniel Drake (dsd) Version 0.72
Date: Tue, 18 Sep 2007 19:21:05 +0000	[thread overview]
Message-ID: <200709182121.07009.zzam@gentoo.org> (raw)
In-Reply-To: <46F015F6.6030908@xplornet.com>

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

      parent reply	other threads:[~2007-09-18 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 18:16 Writing udev Rules by Daniel Drake (dsd) Version 0.72 Rick Pizzi
2007-09-18 19:12 ` Robby Workman
2007-09-18 19:21 ` Matthias Schwarzott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709182121.07009.zzam@gentoo.org \
    --to=zzam@gentoo.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).