linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Marco d'Itri" <md@Linux.IT>
To: linux-hotplug@vger.kernel.org
Subject: Re: remove bashisms from hotplug
Date: Thu, 25 Dec 2003 13:47:44 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-107236015800766@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106976799717012@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

On Nov 25, Marco d'Itri <md@Linux.IT> wrote:

 >These patches remove bashisms from hotplug (tested with the debian dash
 >shell) and add (partial) support for sysfs.
Bugfix, to be applied on top of the other patches.

-- 
ciao, |
Marco | [3784 tiJkekUnVwCzw]

[-- Attachment #2: posix-shell4.diff --]
[-- Type: text/plain, Size: 750 bytes --]

diff -ur hotplug.orig3/input.agent hotplug/input.agent
--- hotplug.orig3/input.agent	2003-10-29 22:23:16.000000000 +0100
+++ hotplug/input.agent	2003-12-25 14:46:06.000000000 +0100
@@ -164,7 +164,7 @@
 
 	set $line
 
-	module=$(($1))
+	module=$1
 	matchBits=$(($2))
 
 	bustype=$(($3))
@@ -173,7 +173,6 @@
 	product=$(($6))
 
 	evBits=$(($7))
-echo "|||$8|||"
 	keyBits=$(($8))
 	relBits=$(($9))
 
diff -ur hotplug.orig3/input.rc hotplug/input.rc
--- hotplug.orig3/input.rc	2003-10-29 22:19:12.000000000 +0100
+++ hotplug/input.rc	2003-12-25 14:46:11.000000000 +0100
@@ -81,7 +81,7 @@
 	    P:* )	# Physical
 		eval "${line#P: }"
 		PHYS=$Phys
-	;;
+	    ;;
 	    B:* )	# Controls supported
 		line="${line#B: }"
 		eval "${line%%=*}=\"${line#*=}\""

  parent reply	other threads:[~2003-12-25 13:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 13:45 remove bashisms from hotplug Marco d'Itri
2003-11-25 17:34 ` Chris Larson
2003-11-26 21:12 ` Joerg Sommer
2003-12-09  9:03 ` Marco d'Itri
2003-12-10  1:15 ` Greg KH
2003-12-17 19:20 ` David Brownell
2003-12-25 13:47 ` Marco d'Itri [this message]
2004-01-09 12:58 ` Olaf Hering

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=marc-linux-hotplug-107236015800766@msgid-missing \
    --to=md@linux.it \
    --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).