From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal =?iso-8859-2?q?=C8iha=F8?= Date: Sun, 07 Mar 2004 15:28:47 +0000 Subject: Re: udev problems Message-Id: <200403071628.47145.michal@cihar.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_v+zSA/XH6JNZpk3" List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.com> To: linux-hotplug@vger.kernel.org --Boundary-00=_v+zSA/XH6JNZpk3 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 07 of March 2004 16:11, Michal =C8iha=F8 wrote: > The problem seems to be that udev thinks that program ended with nonzero. > But I'm pretty sure it ends with exit 0... Okay, I found the solution, but not the problem - attached script works. It= =20 builds name and then echoes complete line, while the previous one echoed it= =20 by parts. =2D --=20 Regards Michal =C8iha=F8 http://cihar.com =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFASz+v3DVS6DbnVgQRAtA3AKCyMzcOS9iJI/cbUZ+d3O3MPf5OxwCfadKY Gcg0F1+iP+dni2b+99dBaqU=3D =3Dkr/L =2D----END PGP SIGNATURE----- --Boundary-00=_v+zSA/XH6JNZpk3 Content-Type: application/x-shellscript; name="apacer.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="apacer.sh" #!/bin/sh scsiname=$(/etc/udev/scsi-devfs.sh "$1" "$2" "$3" | tr -d '\n') NAME=cardreader- case $2 in *:0) NAME=${NAME}cf ;; *:1) NAME=${NAME}mmc ;; *:2) NAME=${NAME}sm ;; esac echo $scsiname $NAME$3 exit 0 --Boundary-00=_v+zSA/XH6JNZpk3-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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