Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > 56a5b3447ca1867b85e3ecb9a4d556a9 > files > 4

udev-013-4mdk.src.rpm

# There are a number of modifiers that are allowed to be used in the NAME or PROGRAM fields.
# They provide the following subsitutions:
# %n - the "kernel number" of the device.
#      for example, 'sda3' has a "kernel number" of '3'
# %k - the kernel name for the device.
# %M - the kernel major number for the device
# %m - the kernel minor number for the device
# %b - the bus id for the device
# %c - the return value for the CALLOUT program (note, this doesn't work within
#      the PROGRAM field for the obvious reason.)
# %D - use the devfs style disk name for this device.
#      For partitions, this will result in 'part%n'
#      If this is not a partition, it will result in 'disc'
#

# block
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n",  SYMLINK="%1c %2c %3c %4c %5c"

KERNEL="md[0-9]*",	SYMLINK="md/%n"
KERNEL="loop[0-9]*",	SYMLINK="loop/%n"
KERNEL="fd[0-9]*",	SYMLINK="floppy/%n"
KERNEL="pktcdvd[0-9]*",	SYMLINK="pktcdvd/%n"

KERNEL="ram[0-9]*",	SYMLINK="rd/%n"

KERNEL="raw[0-9]*",	SYMLINK="%k"
KERNEL="rawctl",	SYMLINK="raw/%k"

KERNEL="lp[0-9]*",	SYMLINK="printers/%n"

# char
KERNEL="vcs",		SYMLINK="vcc/0"
KERNEL="vcs[1-9]*",	SYMLINK="vcc/%n"
KERNEL="vcsa",		NAME="%k",		SYMLINK="vcc/a0 vcsa0"
KERNEL="vcsa[0-9]*",	SYMLINK="vcc/a%n"
KERNEL="tty",		NAME="%k",		SYMLINK="vc/0 tty0"
KERNEL="tty[0-9]*",	SYMLINK="vc/%n"
KERNEL="ttyS[0-9]*",	SYMLINK="tts/%n"
KERNEL="ttyUSB[0-9]*",	SYMLINK="tts/USB%n"

# can one have more then one from these ?
KERNEL="agpgart", 	SYMLINK="misc/agpgart",
KERNEL="apm_bios",	SYMLINK="misc/apm_bios"
KERNEL="rtc",		SYMLINK="misc/rtc"

KERNEL="i2c-[0-9]*",	SYMLINK="i2c/%n"

KERNEL="lirc",		SYMLINK="lirc/lirc%n"
KERNEL="lirc[1-9]",	SYMLINK="lirc/%k"

KERNEL="fb[1-9]*",	SYMLINK="fb/%n"

# some stuff is commented out below, as IIRC the max of tv cards == 8
KERNEL="video0",	SYMLINK="v4l/video0"
KERNEL="video[1-9]",	SYMLINK="v4l/video%n"
KERNEL="radio0",	SYMLINK="v4l/radio0"
KERNEL="radio[1-9]",	SYMLINK="v4l/radio%n"
KERNEL="vbi0",		SYMLINK="v4l/vbi0"
KERNEL="vbi[1-9]",	SYMLINK="v4l/vbi%n"
KERNEL="vtx0",		SYMLINK="v4l/vtx0"
KERNEL="vtx[1-9]",	SYMLINK="v4l/vtx%n"

# input 
KERNEL="psaux",		SYMLINK="misc/%k"


############################   sound  ######################################
KERNEL="admmidi",	SYMLINK="sound/admmidi"
KERNEL="admmidi[1-9]",	SYMLINK="sound/admmidi%n"
KERNEL="adsp",		SYMLINK="sound/adsp"
KERNEL="adsp[1-9]",	SYMLINK="sound/adsp%n"
KERNEL="amidi",		SYMLINK="sound/amidi"
KERNEL="amidi[1-9]",	SYMLINK="sound/amidi%n"
KERNEL="amixer",	SYMLINK="sound/amixer"
KERNEL="amixer[1-9]",	SYMLINK="sound/amixer%n"

KERNEL="audio",		SYMLINK="sound/audio"
KERNEL="audio[1-9]",	SYMLINK="sound/audio%n"
KERNEL="dmmidi",	SYMLINK="sound/dmmidi"
KERNEL="dmmidi[1-9]",	SYMLINK="sound/dmmidi%n"
KERNEL="dsp",		SYMLINK="sound/dsp"
KERNEL="dsp[1-9]",	SYMLINK="sound/dsp%n"
KERNEL="dmfm",		SYMLINK="sound/dmfm"
KERNEL="dmfm[1-9]",	SYMLINK="sound/dmfm%n"
KERNEL="midi",		SYMLINK="sound/midi"
KERNEL="midi[1-9]",	SYMLINK="sound/midi%n"
KERNEL="mixer",		SYMLINK="sound/mixer"
KERNEL="mixer[1-9]",	SYMLINK="sound/mixer%n"
KERNEL="music",		SYMLINK="sound/music"
KERNEL="music[1-9]",	SYMLINK="sound/music%n"
KERNEL="sequencer",	SYMLINK="sound/sequencer"
KERNEL="sequencer[1-9]",SYMLINK="sound/%k"