From: Robert Anderson <rea@q.sr.unh.edu>
To: linux-hotplug@vger.kernel.org
Subject: possible change to usb.agent
Date: Mon, 14 Jan 2002 02:58:17 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-101097712222027@msgid-missing> (raw)
I've been trying to get a script to autorun when my USB Fuji 2800
camera is added to the system. I could only get it to work by
changing the program flow in "usb.agent". It seemed that
"usb.usermap" was only looked at if no other match was found?
I used the jPhoto example, except where they used "usb.handmap" I used
"usb.usermap". It seemed like the comments indicated it should be in
the "usb.usermap" section to me, perhaps I misunderstood the comments?
If I'm way off here please let me know so that I can conform to what
was expected. I'm giving a user group talk on Monday evening 1/13/02,
and I'd like to be give out the correct information.
----------------------------------------------------------------------
I was using the following rpm on Redhat 7.2 and 7.1 systems:
----------------------------------------------------------------------
[root@anthill hotplug]# rpm -qi hotplug
Name : hotplug Relocations: (not relocateable)
Version : 2001_04_24 Vendor: Red Hat, Inc.
Release : 11 Build Date: Mon 27 Aug 2001 12:41:30 PM EDT
Install date: Sun 13 Jan 2002 09:31:19 PM EST Build Host: stripples.devel.redhat.com
Group : System Environment/Kernel Source RPM: hotplug-2001_04_24-11.src.rpm
Size : 97618 License: GPL
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://linux-hotplug.sourceforge.net/
Summary : A helper application which loads modules for USB devices.
Description :
The term "hotplugging" refers to the dynamic reconfiguration performed
after a device has been attached to a running system. This package
contains the application which is called by the kernel when a USB
device is added; hotplug then loads the required modules for that
device.
----------------------------------------------------------------------
The line I added to /etc/hotplug/usb.usermap
----------------------------------------------------------------------
cam2hd 0x3 0x4cb 0x100 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
----------------------------------------------------------------------
The diff of my one line change to /etc/hotplug/usb.agent
----------------------------------------------------------------------
[root@anthill hotplug]# diff -c usb.agent.orig usb.agent
*** usb.agent.orig Sun Jan 13 21:31:38 2002
--- usb.agent Sun Jan 13 21:31:58 2002
***************
*** 307,313 ****
fi
# some devices have user-mode drivers (no kernel module, but config)
! if [ "$FOUND" = "false" -a -r $MAP_USERMAP ]; then
MODPROBE=:
load_drivers usb $MAP_USERMAP "$LABEL"
if [ "$DRIVERS" != "" ]; then
--- 307,313 ----
fi
# some devices have user-mode drivers (no kernel module, but config)
! if [ -r $MAP_USERMAP ]; then
MODPROBE=:
load_drivers usb $MAP_USERMAP "$LABEL"
if [ "$DRIVERS" != "" ]; then
[root@anthill hotplug]#
--------------------------------------------------------------
Robert E. Anderson email: rea@sr.unh.edu
Systems Programmer phone: (603) 862-3489
UNH Research Computing Center fax: (603) 862-1761
--------------------------------------------------------------
_______________________________________________
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
next reply other threads:[~2002-01-14 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-14 2:58 Robert Anderson [this message]
2002-01-14 19:17 ` possible change to usb.agent David Brownell
2002-01-14 20:29 ` Robert Anderson
2002-01-14 22:33 ` David Brownell
2002-01-15 14:43 ` Robert Anderson
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=marc-linux-hotplug-101097712222027@msgid-missing \
--to=rea@q.sr.unh.edu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.