2005-08-09 14:29:12 +04:00
# console
2007-05-07 17:35:10 +04:00
KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0666", OPTIONS="last_rule"
KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0666", OPTIONS="last_rule"
KERNEL=="tty", GROUP="tty", MODE="0666", OPTIONS="last_rule"
KERNEL=="tty[0-9]*|vcs*", GROUP="tty", MODE="0620", OPTIONS="last_rule"
KERNEL=="ptmx", GROUP="tty", MODE="0666", OPTIONS="last_rule"
KERNEL=="console", MODE="0600", OPTIONS="last_rule"
2005-08-09 14:29:12 +04:00
# serial devices
2006-11-14 22:16:35 +03:00
KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
2006-08-11 16:39:13 +04:00
KERNEL=="hvc*|hvsi*", GROUP="uucp"
KERNEL=="iseries/vtty*", GROUP="uucp"
2006-11-14 22:16:35 +03:00
KERNEL=="mwave", NAME="modems/%k", GROUP="uucp"
2006-08-20 20:17:58 +04:00
KERNEL=="ttyUSB*", ATTRS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
KERNEL=="ttyUSB*", ATTRS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*", SYMLINK+="pilot"
2005-08-09 14:29:12 +04:00
# video/graphics
SUBSYSTEM=="video4linux", GROUP="video"
SUBSYSTEM=="graphics" GROUP="video"
2006-08-11 16:39:13 +04:00
KERNEL=="vtx*|vbi*", GROUP="video"
KERNEL=="winradio*", GROUP="video"
KERNEL=="vttuner*", GROUP="video"
KERNEL=="nvidia*|nvidiactl*", GROUP="video"
2005-08-25 04:30:01 +04:00
KERNEL=="video0", SYMLINK+="video"
2005-08-26 16:27:13 +04:00
KERNEL=="radio0", SYMLINK+="radio"
2005-09-08 05:53:54 +04:00
KERNEL=="vbi0", SYMLINK+="vbi"
KERNEL=="pmu", GROUP="video"
2005-08-09 14:29:12 +04:00
# dvb
2005-12-23 02:13:34 +03:00
SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
2005-08-09 14:29:12 +04:00
# input devices
2007-05-07 17:35:10 +04:00
KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
2005-08-09 14:29:12 +04:00
KERNEL=="js*", NAME="input/%k", MODE="0644"
2007-05-07 17:35:10 +04:00
KERNEL=="ts*|uinput", NAME="input/%k", MODE="0600"
2006-08-11 16:39:13 +04:00
KERNEL=="lirc0", SYMLINK+="lirc"
2005-08-09 14:29:12 +04:00
# printer
2005-11-25 21:30:33 +03:00
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
2006-08-11 16:39:13 +04:00
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
KERNEL=="irlpt*", GROUP="lp"
2005-08-09 14:29:12 +04:00
# cpu devices
KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid"
KERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
# IEEE1394 devices
2006-08-11 16:39:13 +04:00
KERNEL=="raw1394*", GROUP="video"
KERNEL=="dv1394*", SYMLINK+="dv1394/%n", GROUP="video"
KERNEL=="video1394*", SYMLINK+="video1394/%n", GROUP="video"
2005-08-09 14:29:12 +04:00
KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
2005-12-15 18:05:37 +03:00
# network
2006-09-30 19:12:25 +04:00
KERNEL=="tun", NAME="net/%k", MODE="0666"
2005-12-15 18:05:37 +03:00
2005-08-09 14:29:12 +04:00
# misc devices
2007-05-07 17:35:10 +04:00
KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
KERNEL=="nvram", GROUP="kmem", MODE="0600"
KERNEL=="null|zero|random", MODE="0666"
KERNEL=="full", MODE="0622"
KERNEL=="urandom", MODE="0644"
KERNEL=="rtc", MODE="0600"
2007-05-03 04:04:19 +04:00
KERNEL=="fuse", MODE="0666"
2005-08-09 14:29:12 +04:00
KERNEL=="sonypi", MODE="0666"
KERNEL=="agpgart", MODE="0600", GROUP="video"
2007-05-07 17:35:10 +04:00
KERNEL=="djs*", MODE="0644"
KERNEL=="sgi_*", MODE="0666"
KERNEL=="rrom*", MODE="0400"
KERNEL=="rflash*", MODE="0400"
KERNEL=="usbscanner*", MODE="0644"
KERNEL=="3270/ttycons*", MODE="0600"
KERNEL=="3270/tub*", MODE="0666"
KERNEL=="3270/tubcons*", MODE="0600"
KERNEL=="ica", MODE="0666"
KERNEL=="z90crypt", MODE="0666"
KERNEL=="mmtimer", MODE="0644"
2005-11-10 03:07:51 +03:00
KERNEL=="auer[0-9]*" NAME="usb/%k"
2005-12-15 18:05:37 +03:00
# packet writing interface
2005-11-25 21:30:33 +03:00
KERNEL=="pktcdvd", NAME="pktcdvd/control"
KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
2005-08-09 14:29:12 +04:00
2007-03-21 03:58:24 +03:00
# additional floppy devices (no sysfs entries)
2007-02-15 00:39:39 +03:00
KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G disk $root/%k"
2005-08-09 14:29:12 +04:00
# block devices
SUBSYSTEM=="block", GROUP="disk", MODE="0640"
2005-08-26 16:27:13 +04:00
2005-11-25 21:30:33 +03:00
# sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
# sr: 4 TYPE_WORM, 5 TYPE_ROM
# st/osst: 1 TYPE_TAPE
2006-08-20 20:17:58 +04:00
SUBSYSTEM=="scsi", ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
SUBSYSTEM=="scsi", ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"
2006-09-07 00:51:30 +04:00
SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="1", ATTR{vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="1", RUN+="/sbin/modprobe st"
SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
2005-08-26 16:27:13 +04:00
SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
2006-08-20 20:17:58 +04:00
KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
SUBSYSTEM=="ide", ACTION=="add", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
2006-11-14 22:16:35 +03:00
SUBSYSTEM=="mmc", ACTION=="add", RUN+="/sbin/modprobe mmc_block"
2006-10-15 20:29:05 +04:00
2005-08-09 14:29:12 +04:00
# misc storage devices (non-block)
2007-05-07 17:35:10 +04:00
KERNEL=="sg*", GROUP="disk", MODE="0640"
2006-08-11 16:39:13 +04:00
KERNEL=="st*|nst*", GROUP="disk"
KERNEL=="qft*|nqft*|zqft*|nzqft*|rawqft*|nrawqft", GROUP="disk"
KERNEL=="ht*|nht*", GROUP="disk"
KERNEL=="pf*", GROUP="disk"
KERNEL=="sch*", GROUP="disk"
KERNEL=="pt*|npt*", GROUP="disk"
KERNEL=="pg*", GROUP="disk"
KERNEL=="evms/block_device*", GROUP="disk"
2006-11-15 22:40:26 +03:00
KERNEL=="rawctl*", NAME="raw/%k", GROUP="disk"
2007-02-15 00:39:39 +03:00
SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
2006-08-11 16:39:13 +04:00
KERNEL=="osst*|nosst*", NAME="%k", GROUP="disk"
2005-08-09 14:29:12 +04:00
KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
2005-11-25 21:30:33 +03:00
# libusb device access
2007-05-03 04:04:19 +04:00
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
2006-09-30 19:12:25 +04:00
SUBSYSTEM=="usb_device", ACTION=="add", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
2005-08-09 14:29:12 +04:00
2005-12-15 18:05:37 +03:00
# kernel firmware loader
SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
2005-08-09 14:29:12 +04:00