1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 00:51:08 +03:00
systemd-stable/etc/udev/redhat/udev.rules

111 lines
4.1 KiB
Plaintext
Raw Normal View History

# 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.
#
2004-12-18 14:20:41 +03:00
# See the udev.rules.examples file for more examples of how to create rules
#
2004-12-18 14:20:41 +03:00
# 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="console", NAME="%k", GROUP="tty", MODE="0600"
KERNEL="tty", NAME="%k", GROUP="tty", MODE="0666"
KERNEL="tty[0-9]*", NAME="%k", GROUP="tty"
KERNEL="ptmx", NAME="%k", GROUP="tty", MODE="0666"
KERNEL="pty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty"
KERNEL="tty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty"
KERNEL="ttyS[0-9]*", NAME="%k", GROUP="uucp"
KERNEL="ttyUSB[0-9]*", NAME="%k", GROUP="uucp"
KERNEL="ippp0", NAME="%k"
KERNEL="isdn*", NAME="%k"
KERNEL="dcbri*", NAME="%k"
KERNEL="ircomm*", NAME="%k", GROUP="uucp"
KERNEL="vcs", NAME="%k", OWNER="vcsa", GROUP="tty", MODE="0600"
KERNEL="vcsa[0-9]*", NAME="%k", OWNER="vcsa", GROUP="tty", MODE="0600
# memory devices¶
KERNEL="random", NAME="%k", MODE="0666"
KERNEL="urandom", NAME="%k", MODE="0444"
KERNEL="mem", NAME="%k", MODE="0640"
KERNEL="kmem", NAME="%k", MODE="0640"
KERNEL="port", NAME="%k", MODE="0640"
KERNEL="full", NAME="%k", MODE="0666"
KERNEL="null", NAME="%k", MODE="0666"
KERNEL="zero", NAME="%k", MODE="0666"
2004-12-18 14:20:41 +03:00
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"
# 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="timer", NAME="snd/%k"
KERNEL="seq", NAME="snd/%k"
# input devices
2004-12-18 14:20:41 +03:00
KERNEL="mice", NAME="input/%k"
KERNEL="mouse*", NAME="input/%k"
KERNEL="event*", NAME="input/%k"
KERNEL="js*", NAME="input/%k"
KERNEL="ts*", NAME="input/%k"
KERNEL="raw[0-9]*", NAME="raw/%k"
KERNEL="lp[0-9]*", SYMLINK="par%n"
BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
KERNEL="microcode", SYMLINK="cpu/0/%k"
KERNEL="ram1", SYMLINK="ram"
KERNEL="video0", SYMLINK="video"
KERNEL="radio0", SYMLINK="radio"
KERNEL="audio0", SYMLINK="audio"
KERNEL="dsp0", SYMLINK="dsp"
KERNEL="fb0", SYMLINK="fb"
KERNEL="qft0", SYMLINK="ftape"
KERNEL="isdnctrl0", SYMLINK="isdnctrl"
KERNEL="mixer0", SYMLINK="mixer"
KERNEL="ram0", SYMLINK="ramdisk"
KERNEL="sbpcd0", SYMLINK="sbpcd"
KERNEL="radio0", SYMLINK="radio"
KERNEL="tty0", SYMLINK="systty"
KERNEL="vbi0", SYMLINK="vbi"
KERNEL="null", SYMLINK="XOR"
KERNEL="tun", NAME="net/%k"
KERNEL="device-mapper", NAME="mapper/control"
# old compat symlinks with enumeration
KERNEL="sr[0-9]*", SYMLINK="cdrom%e"
KERNEL="scd[0-9]*", SYMLINK="cdrom%e"
KERNEL="pcd[0-9]*", SYMLINK="cdrom%e"
KERNEL="fd[0-9]*", SYMLINK="floppy%e"
KERNEL="nst[0-9]*", SYMLINK="tape%e"
2004-12-18 14:20:41 +03:00
2004-12-20 11:53:32 +03:00
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/ide-media.sh %k", RESULT="floppy", SYMLINK="floppy%e, NAME{ignore_remove, all_partitions}="%k", GROUP="floppy"
2004-12-18 14:20:41 +03:00
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", RESULT="cdrom", SYMLINK="cdrom%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
# rename sr* to scd*
2004-12-20 11:53:32 +03:00
KERNEL="sr[0-9]*", BUS="scsi", NAME="scd%n", GROUP="disk", MODE="0640"
KERNEL="hd[a-z]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k", GROUP="disk", MODE="0640"
# all block devices
SUBSYSTEM="block", NAME="%k", GROUP="disk", MODE="0640"
2004-12-18 14:20:41 +03:00
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"