From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal =?iso-8859-2?q?=C8iha=F8?= Date: Sun, 07 Mar 2004 12:47:36 +0000 Subject: Re: udev problems Message-Id: <200403071347.36977.michal@cihar.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_onxSAK2H8HsLU5t" List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.com> To: linux-hotplug@vger.kernel.org --Boundary-00=_onxSAK2H8HsLU5t 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 No need to cc me, I'm subsribed. On Sunday 07 of March 2004 13:29, Kay Sievers wrote: > What is this "apacer.sh" for? What's in there? See attachment, it just generates device name. > Most removable media devices are unable to report media changes, you > have to poll the device, but thats not a udev task. Okay, this problem is solvable. > So your choice is to dis-/reconnect for partition update=20 This doesn't work, it doesn't report partiotions even if card inserted whil= e=20 connecting. > or create all partitions if the main device is connected with > NAME{all_partitions}=3D. Probably best solution. =2D --=20 Regards Michal =C8iha=F8 http://cihar.com =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFASxno3DVS6DbnVgQRAiVOAJ9v4U30sNDYEHpS34h5dab/vQgRzgCggEmF +xtXrJ6qwjJe8h2L+LjR3kI=3D =3D3+K8 =2D----END PGP SIGNATURE----- --Boundary-00=_onxSAK2H8HsLU5t 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') echo -n $scsiname cardreader- case $2 in *0) echo -n cf ;; *1) echo -n mmc ;; *2) echo -n sm ;; esac echo $3 exit 0 --Boundary-00=_onxSAK2H8HsLU5t-- ------------------------------------------------------- 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