From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal =?iso-8859-2?q?=C8iha=F8?= Date: Sun, 07 Mar 2004 14:30:10 +0000 Subject: Re: udev problems Message-Id: <200403071530.10366.michal@cihar.com> List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 07 of March 2004 15:16, Kay Sievers wrote: > On Sun, 2004-03-07 at 13:15, Michal =C8iha=F8 wrote: > > 21: BUS=3D"scsi", SYSFS{vendor}=3D"Apacer ", SYSFS{model}=3D"Mega Sten= o =20 > > ", PROGRAM=3D"/etc/udev/apacer.sh %k %b %n", NAME=3D"%c{1}", SYMLINK=3D= "%k > > %c{2} %c{3}" > > > > Why does every time match another rule? > > Yeah, It's a bug in the trailin whitespace removal. > We mangle the attribut evalue while we compare it and > libsysfs reuses it :( > > Just remove your trailing whitespace from "Apacer " and please tell me > if it works. Anyway I will fix it soon. When I leave just: BUS=3D"scsi", SYSFS{vendor}=3D"Apacer", PROGRAM=3D"/etc/udev/apacer.sh %k %= b %n",=20 NAME=3D"%c{1}", SYMLINK=3D"%k %c{2} %c{3}" It still behaves very non determinantely, sometimes it catches all three=20 slots, sometimes just one :-(. This doesn't depend whether there is another= =20 rule that will catch this device. Same happens when I try to match it on serial number (AFAIK no trailing=20 space): BUS=3D"usb", SYSFS_serial=3D"19220DA1018B", PROGRAM=3D"/etc/udev/apacer.sh = %k %b=20 %n", NAME=3D"%c{1}", SYMLINK=3D"%k %c{2} %c{3}" - --=20 Regards Michal =C8iha=F8 http://cihar.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFASzHy3DVS6DbnVgQRAjjdAJ9mW+G6v+3+B/8LKAaDE1kKkZG0/wCg8blT nKjlEfGFPollKnBnA53dswM=3DjcWO -----END PGP SIGNATURE----- ------------------------------------------------------- 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_id638&op=CCk _______________________________________________ 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