From: "Kameron Hoffs" Date: Tue, 13 Jan 2004 04:37:25 +0000 Subject: [PATCH] /etc/hotplug/usb.agent (updated) Message-Id: <200401122137.25495.ivorytiger@qwest.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I really shouldn't post when tired. I apoligize for the extra quotes in the original and the wrong file name in the header. Sincerely, -- Kameron Hoffs ivorytiger@qwest.net kjhoffs@us.ibm.com --- /etc/hotplug/usb.agent.old 2004-01-10 22:49:58.000000000 -0700 +++ /etc/hotplug/usb.agent 2004-01-11 10:13:16.724492096 -0700 @@ -141,7 +141,7 @@ if [ "$PRODUCT" = "" ]; then # this could care about changing the default config, or warning # when the user hooked a fast device up so it runs slowly. TMP=$(cat $SYSFS/$DEVPATH/bNumConfigurations) - if [ $TMP -ne 1 -a $ACTION = add ]; then + if [ "$TMP" != "1" ] && [ "$ACTION" = 'add' ]; then mesg Keeping default configuration with $SYSFS/$DEVPATH fi ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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