# 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' # %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 'disk' # NUMBER, BUS="ide", id="0.0", NAME="ide/host0/bus0/target0/lun0/%D", SYMLINK="hda%n" NUMBER, BUS="ide", id="0.1", NAME="ide/host0/bus0/target1/lun0/%D", SYMLINK="hdb%n" NUMBER, BUS="ide", id="1.0", NAME="ide/host0/bus1/target0/lun0/%D", SYMLINK="hdc%n" NUMBER, BUS="ide", id="1.1", NAME="ide/host0/bus1/target1/lun0/%D", SYMLINK="hdd%n" NUMBER, BUS="ide", id="2.0", NAME="ide/host2/bus0/target0/lun0/%D", SYMLINK="hde%n" NUMBER, BUS="ide", id="2.1", NAME="ide/host2/bus0/target1/lun0/%D", SYMLINK="hdf%n" NUMBER, BUS="ide", id="3.0", NAME="ide/host2/bus1/target0/lun0/%D", SYMLINK="hdg%n" NUMBER, BUS="ide", id="3.1", NAME="ide/host2/bus1/target1/lun0/%D", SYMLINK="hdh%n" NUMBER, BUS="ide", id="4.0", NAME="ide/host4/bus0/target0/lun0/%D", SYMLINK="hdi%n" NUMBER, BUS="ide", id="4.1", NAME="ide/host4/bus0/target1/lun0/%D", SYMLINK="hdj%n" NUMBER, BUS="ide", id="5.0", NAME="ide/host4/bus1/target0/lun0/%D", SYMLINK="hdk%n" NUMBER, BUS="ide", id="5.1", NAME="ide/host4/bus1/target1/lun0/%D", SYMLINK="hdl%n" REPLACE, KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="md%n" REPLACE, KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="loop%n" REPLACE, KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="fd%n" #REPLACE, KERNEL="cd", NAME="cdroms/cdrom0", SYMLINK="cdrom0 cdrom" #REPLACE, KERNEL="cd[1-9]", NAME="cdroms/cdrom%n", SYMLINK="cdrom%n" REPLACE, KERNEL="pktcdvd[0-9]*", NAME="pktcdvd/%n", SYMLINK="pktcdvd%n" REPLACE, KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="ram%n" REPLACE, KERNEL="raw[0-9]*", NAME="raw/%n", SYMLINK="raw%n" REPLACE, KERNEL="vcs", NAME="vcc/0" , SYMLINK="vcs0 vcs" REPLACE, KERNEL="vcs[0-9]*", NAME="vcc/%n" , SYMLINK="vcs%n" REPLACE, KERNEL="vcsa", NAME="vcc/a0" , SYMLINK="vcs0 vcsa" REPLACE, KERNEL="vcsa[0-9]*", NAME="vcc/a%n" , SYMLINK="vcsa%n" REPLACE, KERNEL="tty", NAME="vc/0" , SYMLINK="tty0 tty" REPLACE, KERNEL="tty[0-9]*", NAME="vc/%n" , SYMLINK="tty%n" REPLACE, KERNEL="ttyS[0-9]*", NAME="tts/%n" , SYMLINK="ttyS%n" REPLACE, KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n" # can one have more then one from these ? REPLACE, KERNEL="agpgart", NAME="misc/agpgart", SYMLINK="agpgart" REPLACE, KERNEL="apm_bios", NAME="misc/apm_bios", SYMLINK="apm_bios" REPLACE, KERNEL="psaux", NAME="misc/psaux", SYMLINK="psaux" REPLACE, KERNEL="rtc", NAME="misc/rtc", SYMLINK="rtc" # some stuff is commented out below, as IIRC the max of tv cards == 8 REPLACE, KERNEL="video0", NAME="v4l/video0", SYMLINK="video0 video" REPLACE, KERNEL="video[1-9]", NAME="v4l/video%n", SYMLINK="video%n" #REPLACE, KERNEL="video[1-9][0-9]*", NAME="v4l/video%n", SYMLINK="video%n" REPLACE, KERNEL="radio0", NAME="v4l/radio0", SYMLINK="radeo0 radeo" REPLACE, KERNEL="radio[1-9]", NAME="v4l/radio%n", SYMLINK="radeo%n" #REPLACE, KERNEL="radio[1-9][0-9]*", NAME="v4l/radio%n", SYMLINK="radeo%n" REPLACE, KERNEL="vbi0", NAME="v4l/vbi0", SYMLINK="vbi0 vbi" REPLACE, KERNEL="vbi[1-9]", NAME="v4l/vbi%n", SYMLINK="vbi%n" #REPLACE, KERNEL="vbi[1-9][0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi%n" REPLACE, KERNEL="vtx0", NAME="v4l/vtx0", SYMLINK="vtx0 vtx" REPLACE, KERNEL="vtx[1-9]", NAME="v4l/vtx%n", SYMLINK="vtx%n" #REPLACE, KERNEL="vtx[1-9][0-9]*", NAME="v4l/vtx%n", SYMLINK="vtx%n" REPLACE, KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="fb%n" REPLACE, KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="i2c-%n"