2007-08-10 10:36:59 +00:00
|
|
|
# do not edit this file, it will be overwritten on update
|
|
|
|
|
2008-10-06 22:18:55 +00:00
|
|
|
SUBSYSTEM=="block", SYMLINK+="block/%M:%m"
|
|
|
|
SUBSYSTEM!="block", SYMLINK+="char/%M:%m"
|
|
|
|
|
2008-07-09 21:50:46 +00:00
|
|
|
KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="ptmx", GROUP="tty", MODE="0666", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="tty", GROUP="tty", MODE="0666", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty", OPTIONS+="last_rule"
|
|
|
|
KERNEL=="console", MODE="0600", OPTIONS+="last_rule"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# serial
|
|
|
|
KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
|
|
|
|
KERNEL=="ppp", MODE="0600", OPTIONS+="ignore_remove"
|
|
|
|
KERNEL=="mwave", NAME="modems/mwave", GROUP="uucp"
|
|
|
|
KERNEL=="hvc*|hvsi*", GROUP="uucp"
|
|
|
|
KERNEL=="lirc0", SYMLINK+="lirc"
|
|
|
|
|
|
|
|
# mem
|
2007-08-25 12:07:02 +00:00
|
|
|
KERNEL=="null|zero|full|random|urandom", MODE="0666"
|
2008-11-28 00:18:15 +00:00
|
|
|
KERNEL=="null", SYMLINK+="X0R"
|
2008-08-11 08:34:18 +00:00
|
|
|
KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="ram0", SYMLINK+="ramdisk"
|
|
|
|
KERNEL=="ram1", SYMLINK+="ram"
|
|
|
|
|
|
|
|
# input
|
|
|
|
KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
|
2007-08-25 12:07:02 +00:00
|
|
|
KERNEL=="ts[0-9]*|uinput", NAME="input/%k", MODE="0600"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="js[0-9]*", NAME="input/%k", MODE="0644", SYMLINK+="%k"
|
|
|
|
|
|
|
|
# video4linux
|
2008-11-19 20:47:07 +00:00
|
|
|
SUBSYSTEM=="video4linux", GROUP="video"
|
|
|
|
KERNEL=="vttuner*", GROUP="video"
|
|
|
|
KERNEL=="vtx*|vbi*", GROUP="video"
|
|
|
|
KERNEL=="winradio*", GROUP="video"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="vbi0", SYMLINK+="vbi"
|
|
|
|
KERNEL=="radio0", SYMLINK+="radio"
|
|
|
|
KERNEL=="video0", SYMLINK+="video"
|
|
|
|
|
|
|
|
# graphics
|
2008-11-19 20:47:07 +00:00
|
|
|
KERNEL=="agpgart", MODE="0600", GROUP="video"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="card[0-9]*", NAME="dri/%k", MODE="0666"
|
|
|
|
KERNEL=="fb0", SYMLINK+="fb"
|
2008-11-19 20:47:07 +00:00
|
|
|
KERNEL=="pmu", GROUP="video"
|
|
|
|
KERNEL=="nvidia*|nvidiactl*", GROUP="video"
|
|
|
|
SUBSYSTEM=="graphics", GROUP="video"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# DVB video
|
2007-10-14 12:48:14 +00:00
|
|
|
SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c"
|
2008-11-19 20:47:07 +00:00
|
|
|
SUBSYSTEM=="dvb", GROUP="video"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# Firewire
|
|
|
|
KERNEL=="dv1394*", SYMLINK+="dv1394/%n"
|
|
|
|
KERNEL=="video1394*", NAME="video1394/%n"
|
2008-11-19 20:47:07 +00:00
|
|
|
KERNEL=="dv1394*|video1394*|raw1394*", GROUP="video"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# libusb device nodes
|
2008-10-30 15:11:49 +00:00
|
|
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# printer
|
|
|
|
KERNEL=="parport[0-9]*", GROUP="lp"
|
|
|
|
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
|
|
|
|
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
|
2007-08-24 18:34:44 +00:00
|
|
|
KERNEL=="lp[0-9]*", GROUP="lp", SYMLINK+="par%n"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="irlpt[0-9]*", GROUP="lp"
|
|
|
|
|
|
|
|
# block, tapes, block-releated
|
2008-07-30 11:20:31 +00:00
|
|
|
SUBSYSTEM=="block", GROUP="disk"
|
2007-08-10 10:36:59 +00:00
|
|
|
SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n"
|
|
|
|
KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
|
|
|
|
KERNEL=="fd[0-9]", GROUP="floppy"
|
|
|
|
KERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy $root/%k"
|
|
|
|
KERNEL=="sch[0-9]*", GROUP="disk"
|
2008-03-13 14:59:02 +00:00
|
|
|
KERNEL=="sg[0-9]*", ATTRS{type}!="3|6", GROUP="disk", MODE="0640"
|
2007-08-24 18:34:44 +00:00
|
|
|
KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="disk"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="pg[0-9]*", GROUP="disk"
|
|
|
|
KERNEL=="pt[0-9]*|npt[0-9]*", GROUP="disk"
|
|
|
|
KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
|
|
|
|
KERNEL=="rawctl", NAME="raw/%k", GROUP="disk"
|
|
|
|
SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
|
|
|
|
KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
|
|
|
|
KERNEL=="pktcdvd", NAME="pktcdvd/control"
|
|
|
|
KERNEL=="qft0", SYMLINK+="ftape"
|
2007-10-14 12:48:14 +00:00
|
|
|
SUBSYSTEM=="bsg", NAME="bsg/%k"
|
2008-12-09 03:18:21 +00:00
|
|
|
SUBSYSTEM=="aoe", NAME="etherd/%k", GROUP="disk", MODE="0220"
|
|
|
|
SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
|
|
|
# network
|
|
|
|
KERNEL=="tun", NAME="net/%k", MODE="0666", OPTIONS+="ignore_remove"
|
|
|
|
|
|
|
|
# CPU
|
|
|
|
KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
|
|
|
|
KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
|
|
|
|
KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
|
|
|
|
|
|
|
|
# miscellaneous
|
|
|
|
KERNEL=="fuse", MODE="0666"
|
2007-08-30 13:03:21 +00:00
|
|
|
KERNEL=="rtc|rtc0", MODE="0644"
|
|
|
|
KERNEL=="rtc0", SYMLINK+="rtc"
|
2007-10-14 12:48:14 +00:00
|
|
|
KERNEL=="auer[0-9]*", NAME="usb/%k"
|
2007-08-10 10:36:59 +00:00
|
|
|
KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
|
|
|
|
KERNEL=="mmtimer", MODE="0644"
|
|
|
|
KERNEL=="rflash[0-9]*", MODE="0400"
|
|
|
|
KERNEL=="rrom[0-9]*", MODE="0400"
|
|
|
|
KERNEL=="sbpcd0", SYMLINK+="sbpcd"
|
|
|
|
KERNEL=="slram[0-9]*", SYMLINK+="xpram%n"
|
|
|
|
KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
|
|
|
|
KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
|
2007-08-16 10:47:37 +00:00
|
|
|
KERNEL=="iowarrior[0-9]*", NAME="usb/%k"
|
2008-11-28 01:01:51 +00:00
|
|
|
KERNEL=="hiddev[0-9]*", NAME="usb/%k"
|
|
|
|
KERNEL=="legousbtower[0-9]*", NAME="usb/%k"
|
|
|
|
KERNEL=="dabusb[0-9]*", NAME="usb/%k"
|
|
|
|
KERNEL=="usbdpfp[0-9]*", NAME="usb/%k"
|
|
|
|
KERNEL=="cpad[0-9]*", NAME="usb/%k"
|
2007-08-10 10:36:59 +00:00
|
|
|
|
2007-08-30 12:14:54 +00:00
|
|
|
# do not delete static device nodes
|
|
|
|
ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove"
|
|
|
|
|