linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bob Barry <bobb@absamail.co.za>
To: linux-hotplug@vger.kernel.org
Subject: Re: renaming causes incorrect device creation
Date: Wed, 17 Mar 2004 07:44:40 +0000	[thread overview]
Message-ID: <200403170944.40598.bobb@absamail.co.za> (raw)
In-Reply-To: <20040317021453.GA13348@perl.xsdg.org>

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]

On Wednesday 17 March 2004, xsdg wrote:
> Normally, when I plug in my camera, I see (in /udev/):
> 
> brw-------    1 root     root       8,   0 2004-03-17 01:53 sda
> brw-------    1 root     root       8,   1 2004-03-17 01:53 sda1
> 
> I then add to udev.rules:
> BUS="scsi", SYSFS{model}="Sony DSC        ", NAME="removable/camera%n"

I used the following rule successfully...

# USB storage of Sony DSC-31 camera
BUS="usb", SYSFS{product}="Sony DSC" NAME="%k" SYMLINK="camera"

...until I built the "generic devices" module, and found that char device sg2
was being assigned to the camera.  So I changed the rule and it works again:

# USB storage of Sony DSC-31 camera
BUS="usb", KERNEL="sd*", SYSFS{product}="Sony DSC" NAME="%k" SYMLINK="camera"

OT: The script I use to download from the camera is attached.



[-- Attachment #2: getpix --]
[-- Type: application/x-shellscript, Size: 586 bytes --]

  reply	other threads:[~2004-03-17  7:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-17  2:14 renaming causes incorrect device creation xsdg
2004-03-17  7:44 ` Bob Barry [this message]
2004-03-17  8:33 ` Bob Barry

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=200403170944.40598.bobb@absamail.co.za \
    --to=bobb@absamail.co.za \
    --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).