On Sat, May 13, 2006 at 01:12:17PM -0600, Archaic wrote: > This is preliminary. I'm still working through the rest of the rules. > This covers the first 3 sections of the current 25-lfs.rules file. > > KERNEL=="capi", NAME="capi20", > SYMLINK+="isdn/capi20" > > KERNEL=="capi*", NAME="capi/%n" > # Changed the [0-9]* regex to the more simple and equally matching *.
According to the document "Writing rules for udev" included in the udev 092 tarball (which does, however, seem to be slightly out of date), this is not the case. "The * operator is used here, which matches literally anything - zero, one, or more characters of any kind." So capi* will match capi (which is apparently a possible device, judging by the previous rule), but cape[0-9]* won't. The only way the old and new patterns would be equivalent is if KERNEL matches NAMEs that have been set earlier on, which is non-intuitive if it is the case (I'd expect KERNEL to match the name the kernel gave it, and only that name). > KERNEL=="vcs*", GROUP="tty" This should match vcs for the same reason, so the additional rule in the second email (KERNEL=="vcs") should be unnecessary. Alex :-) -- Pippin Computer Monkey to the Pelican www.oxrev.org.uk, www.corpusjcr.org, www.rev.org.uk Internal: 30741, external: 0870 2760741
pgpCrplzBBpbG.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page