chiark / gitweb /
[PATCH] fix up udev.rules to handle oss rules better.
[elogind.git] / etc / udev / udev.rules.gentoo
index 81c370e03e8ffc13b1d957aee596afaaf39a22e1..eb72931c3f79f943b96662d1011190387e4d75bb 100644 (file)
@@ -1,5 +1,5 @@
 # /etc/udev/udev.rules:  device naming rules for udev
-# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.rules.post_012,v 1.5 2004/02/08 16:59:29 azarah Exp $
+# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.rules-018,v 1.2 2004/02/29 11:07:39 azarah Exp $
 #
 # There are a number of modifiers that are allowed to be used in some of the
 # fields.  See the udev man page for a full description of them.
 
 # devfs-names for ide-devices (uncomment only one)
 #  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
-BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%1c %2c"
+BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
 
 # alsa devices
 KERNEL="controlC[0-9]*", NAME="snd/%k"
 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
-KERNEL="midi[CD0-9]*",   NAME="snd/%k"
+KERNEL="midiC[D0-9]*",   NAME="snd/%k"
 KERNEL="timer",          NAME="snd/%k"
 KERNEL="seq",            NAME="snd/%k"
 
 # dm devices (ignore them)
 KERNEL="dm-[0-9]*",     NAME=""
+# create a symlink named after the device map name
+# note devmap_name comes with extras/multipath
+#KERNEL="dm-[0-9]*",     PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
 KERNEL="device-mapper", NAME="mapper/control"
 
 # fb devices
@@ -100,12 +103,16 @@ KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
 
 # sound devices
-KERNEL="adsp",       NAME="sound/adsp"        SYMLINK="%k"
-KERNEL="audio",      NAME="sound/audio",      SYMLINK="%k"
-KERNEL="dsp",        NAME="sound/dsp",        SYMLINK="%k"
-KERNEL="mixer",      NAME="sound/mixer",      SYMLINK="%k"
-KERNEL="sequencer",  NAME="sound/sequencer",  SYMLINK="%k"
-KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
+KERNEL="adsp",            NAME="sound/%k", SYMLINK="%k"
+KERNEL="adsp[0-9]*",      NAME="sound/%k", SYMLINK="%k"
+KERNEL="audio",           NAME="sound/%k", SYMLINK="%k"
+KERNEL="audio[0-9]*",     NAME="sound/%k", SYMLINK="%k"
+KERNEL="dsp",             NAME="sound/%k", SYMLINK="%k"
+KERNEL="dsp[0-9]*",       NAME="sound/%k", SYMLINK="%k"
+KERNEL="mixer",           NAME="sound/%k", SYMLINK="%k"
+KERNEL="mixer[0-9]*",     NAME="sound/%k", SYMLINK="%k"
+KERNEL="sequencer",       NAME="sound/%k", SYMLINK="%k"
+KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
 
 # tty devices
 KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"