From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gene Cash Date: Mon, 25 Nov 2002 20:49:10 +0000 Subject: should the module script be invoked every time? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org OK, I'm running SuSE 8.0 with a 2.4.18 kernel, and I removed the hotplug RPM and installed hotplug-2002_08_26 I'm trying to get my Palm m500 to hotsync in the USB cradle when I press the button. I've created a little script to do this using jpilot-sync from jpilot, and that part works just fine. The script is now /etc/hotplug/usb/visor, since it's the visor module that supports the palms. OK, now what documentation I've seen says that this script should be called *every* time the palm connects on the USB, which it does when it tries to initiate a hotsync. Is this right? However, due to (I believe) a bug in load_drivers() in hotplug.functions, it only gets called when the visor module is first loaded, and never called again until that module is unloaded. I can provide a patch. Which behavour is correct? And if the current behaviour is correct, then how do I get a script to run every time? -gc -- Gene Cash Server Technologies (Business Ops) Phone: 407-458-5237 Oracle Support Services (Orlando, FL USA) ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ 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