From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oli Comber Date: Thu, 31 Mar 2005 16:39:24 +0000 Subject: Re: udev sysfs %s{filename} not working Message-Id: <1112287164.3470.615.camel@localhost.localdomain> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-7N1rne5E8naf3fFUFo8a" List-Id: References: <1111489188.24786.1183.camel@localhost.localdomain> In-Reply-To: <1111489188.24786.1183.camel@localhost.localdomain> To: linux-hotplug@vger.kernel.org --=-7N1rne5E8naf3fFUFo8a Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-03-28 at 03:31 +0200, Kay Sievers wrote: > On Wed, 2005-03-23 at 17:37 +0000, Oliver Comber wrote: > > > >=20 > > > > Yeah, we just look at the class device itself and physical device, = but > > > > do not walk up the all physical devices while searching for the sys= fs > > > > attribute to apply with a format char. I will see what I can do for= a > > > > one of the next udev versions. > > > > In the meantime this dirty trick may work: "%s{../product}". :) > >=20 > > Excuse the bad form posting over myself, but I've just managed to get > > your hack above to work with the latest released sources (056) : > >=20 > > BUS=3D"usb", KERNEL=3D"lp[0-9]*", NAME=3D"usb/%k", SYMLINK=3D"myprint= ers/% > > s{../product}" > >=20 > > gives me free, (almost) unique device naming, without having to write > > any device specific udev rules! > >=20 > > The version shipped in Ubuntu Warty - 028 - doesn't support this hack. >=20 > I've added something to my tree today. The next udev version will be > able to do this without the "../". >=20 > Kay Excellent, Cheers Kay! I look forward to trying out the next version. This should take a lot of load off of cups, sane etc trying to do device discovery themselves or users struggling to have dependable names/devices for two or more connected printers (My original problem ;0) ) Good work! :0) -Oli --=-7N1rne5E8naf3fFUFo8a Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCTCe8y1WGesb8OOcRAhPpAJwPlIPVUn2Hs+Y9JtJ/ZGDJd8MJxACgjF/V FznPDjnz6An4Inrcs4cUKLU= =5jJv -----END PGP SIGNATURE----- --=-7N1rne5E8naf3fFUFo8a-- ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ 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