From: "Maksim (Max) Krasnyanskiy" <maxk@qualcomm.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] usb.agent should processes usermap before other
Date: Thu, 18 Jul 2002 20:17:57 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-102702356013027@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102696506820116@msgid-missing>
> > btw How is usb.usermap supposed to be updated. It'd be nice to have
> > per-susbsytem usermap.
> > Then I could simply install bluetooth specific usermap without patching
> > usb.usermap.
>
>Yes, I've been thinking the same thing. gphoto2 has it's own usermap
>which would be much more convenient if it was it's own file.
Ok. How about this.
--- usb.agent.orig Thu Jul 18 01:03:23 2002
+++ usb.agent Thu Jul 18 01:11:30 2002
@@ -82,8 +82,7 @@
# config scripts (which mustn't overlap with kernel modules). Those
# could change $DEVICE permissions, etc.
#
-MAP_USERMAP=$HOTPLUG_DIR/usb.usermap
-
+MAP_USERMAP_DIR=$HOTPLUG_DIR/usb
# accumulates list of modules we may care about
DRIVERS=""
@@ -335,13 +334,17 @@
fi
# some devices have user-mode drivers (no kernel module, but config)
- # or specialized user-mode setup helpers
- if [ -r $MAP_USERMAP ]; then
+ # or specialized user-mode setup helpers
+ MAPS="$MAP_USERMAP_DIR/usermap.*"
+ if [ "$MAPS" != "" ]; then
MODPROBE=:
- load_drivers usb $MAP_USERMAP "$LABEL"
- if [ "$DRIVERS" != "" ]; then
- FOUND=true
- fi
+ for map in $MAPS; do
+ load_drivers usb $map "$LABEL"
+ if [ "$DRIVERS" != "" ]; then
+ FOUND=true
+ break
+ fi
+ done
fi
if [ "$FOUND" = "false" ]; then
(this is just RFC, spaces are probably clobbered.
I'll send real patch if people are ok with this.)
/etc/hotplug/usb/usermap.bluetooth
bluefw 0x0003 0x0a5c 0x2033 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00
0x00000000
Works fine for me.
Comments ?
Max
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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 prev parent reply other threads:[~2002-07-18 20:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 3:59 [PATCH] usb.agent should processes usermap before other maps Maksim (Max) Krasnyanskiy
2002-07-18 5:35 ` David Brownell
2002-07-18 16:49 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 17:19 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 17:47 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 17:51 ` [PATCH] usb.agent should processes usermap before other maps Johannes Erdfelt
2002-07-18 20:17 ` Maksim (Max) Krasnyanskiy [this message]
2002-07-18 20:55 ` David Brownell
2002-07-18 21:40 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 21:49 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 22:03 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-07-18 23:03 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
2002-07-18 23:47 ` [PATCH] usb.agent should processes usermap before other Maksim (Max) Krasnyanskiy
2002-08-09 18:22 ` [PATCH] usb.agent should processes usermap before other maps David Brownell
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-102702356013027@msgid-missing \
--to=maxk@qualcomm.com \
--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.