linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 1/1 /etc/hotplug/usb.agent
@ 2004-01-13  4:33 Kameron Hoffs
  0 siblings, 0 replies; only message in thread
From: Kameron Hoffs @ 2004-01-13  4:33 UTC (permalink / raw)
  To: linux-hotplug

I hope this is the correct format for this.  I ran into an error when this 
piece of code executed.

# bash: /etc/hotplug/usb.agent: line 144 [: too many arguements

Sincerely,

--
Kameron Hoffs
ivorytiger@qwest.net
kjhoffs@us.ibm.com


--- /etc/hotplug/usb.agent      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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-13  4:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13  4:33 [PATCH] 1/1 /etc/hotplug/usb.agent Kameron Hoffs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).