From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Thu, 25 Dec 2003 13:47:44 +0000 Subject: Re: remove bashisms from hotplug MIME-Version: 1 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Nov 25, Marco d'Itri 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] --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="posix-shell4.diff" 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#*=}\"" --LZvS9be/3tNcYl/X-- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ 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