From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chris Weiss" Date: Mon, 09 Jun 2003 15:12:15 +0000 Subject: Re: should the module script be invoked every time? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I'm new to the list, bringing up an old topic becasue I too had the same issue and it doesn't seem to have been resolved on the list or in the docs. > >The script is now /etc/hotplug/usb/visor, since it's the visor module > >that supports the palms. > > If you give your script some other name, like 'palmsync' or something > else, your script shall run everytime you plug in the device. > If you rename the module in distmap, the kernel module won't load. But if the kernel module is already loaded, the usermap won't get run at all. The docs are WRONG on this! http://linux-hotplug.sourceforge.net/?selected=usb "When your device support involves a kernel driver, instead of a purely user mode driver, name the script after that driver. Similar scripts can trigger when you connect a PDA, printer, or other device. " This clearly implies that the script will run so long it has the same name as the module...period. no editing maps, no if's and's or but's. This is wrong. What needs to be done is copy the visor line from the distmap to the handmap, renaming the module to your own name, then add the script of this new name. Note that the usermap will NEVER get processed if the distmap or handmap sucessfully do something usefull, but distmap and handmap will both always be processed. From looking at the *.agent scripts, it also seems as though this feature ONLY applies to usb. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.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