From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 11 Dec 2004 12:29:02 +0000 Subject: Re: usb pen usb.usermap problem Message-Id: <1102768142.9126.6.camel@localhost.localdomain> List-Id: References: <20041209073912.GB7187@alea> In-Reply-To: <20041209073912.GB7187@alea> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2004-12-09 at 08:39 +0100, hy2 wrote: > hy list, > > i would run a bash script when i plug-in my usb pen. > the script is /etc/hotplug/usb/usb-stylo. > > so i added this line to /etc/hotplug/usb.usermap. > > usb-stilo 0x000f 0x0ea0 0x6803 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 usb-stylo != usb-stilo Spelling error? > i don't know how to set the 1th field (match_flags) but about > the 2th end 3th i'm sure they are right. Look at /etc/hotplug/usb.agent: USB_MATCH_VENDOR=$((0x0001)) USB_MATCH_PRODUCT=$((0x0002)) USB_MATCH_DEV_LO=$((0x0004)) USB_MATCH_DEV_HI=$((0x0008)) USB_MATCH_DEV_CLASS=$((0x0010)) USB_MATCH_DEV_SUBCLASS=$((0x0020)) USB_MATCH_DEV_PROTOCOL=$((0x0040)) USB_MATCH_INT_CLASS=$((0x0080)) USB_MATCH_INT_SUBCLASS=$((0x0100)) USB_MATCH_INT_PROTOCOL=$((0x0200)) Good luck, Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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