From: "Kameron Hoffs" <ivorytiger@qwest.net>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] 1/1 /etc/hotplug/usb.agent
Date: Tue, 13 Jan 2004 04:33:56 +0000 [thread overview]
Message-ID: <200401122133.56800.ivorytiger@qwest.net> (raw)
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
reply other threads:[~2004-01-13 4:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401122133.56800.ivorytiger@qwest.net \
--to=ivorytiger@qwest.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).