2006-12-13 15:24:33 +01:00
|
|
|
# Miscellaneous devices.
|
2006-12-21 20:22:06 +01:00
|
|
|
KERNEL=="mem|kmem", MODE="0600"
|
|
|
|
KERNEL=="port", MODE="0600"
|
|
|
|
KERNEL=="nvram", MODE="0600"
|
|
|
|
KERNEL=="null", MODE="0666"
|
|
|
|
KERNEL=="zero", MODE="0666"
|
|
|
|
KERNEL=="full", MODE="0622"
|
|
|
|
KERNEL=="random", MODE="0666"
|
|
|
|
KERNEL=="urandom", MODE="0644"
|
|
|
|
KERNEL=="rtc", MODE="0600"
|
2006-12-13 15:24:33 +01:00
|
|
|
KERNEL=="sonypi", MODE="0666"
|
2006-12-21 20:22:06 +01:00
|
|
|
KERNEL=="agpgart", MODE="0600"
|
2007-02-20 15:30:05 +01:00
|
|
|
KERNEL=="kvm", MODE="0666"
|
2007-04-07 23:41:29 +02:00
|
|
|
KERNEL=="fuse", MODE="0666"
|
2007-09-04 15:44:26 +02:00
|
|
|
KERNEL=="tun", NAME="net/%k", MODE="0666"
|
2006-12-13 15:24:33 +01:00
|
|
|
|
|
|
|
|
2007-01-16 23:34:15 +01:00
|
|
|
# TTYs.
|
2007-03-04 00:20:08 +01:00
|
|
|
KERNEL=="tty", NAME="%k", MODE="666", OPTIONS="last_rule" # GROUP="tty"
|
2007-01-16 23:34:15 +01:00
|
|
|
KERNEL=="ptmx", NAME="%k", MODE="666" # GROUP="tty"
|
|
|
|
|
|
|
|
|
2006-12-13 15:24:33 +01:00
|
|
|
# Input devices go under /dev/input.
|
|
|
|
KERNEL=="mouse*|mice", NAME="input/%k", MODE="0640"
|
|
|
|
KERNEL=="event*", NAME="input/%k", MODE="0640"
|
|
|
|
KERNEL=="js*", NAME="input/%k", MODE="0644"
|
|
|
|
KERNEL=="ts*", NAME="input/%k", MODE="0600"
|
|
|
|
KERNEL=="uinput", NAME="input/%k", MODE="0600"
|
|
|
|
|
|
|
|
|
|
|
|
# Create a symlink for the CD-ROM device.
|
|
|
|
KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", SYSFS{device/media}=="cdrom", SYMLINK+="cdrom cdrom-%k"
|
2007-03-06 01:07:00 +01:00
|
|
|
KERNEL=="sr[0-9]", BUS=="scsi", SYMLINK+="cdrom cdrom-%k"
|
2007-03-01 01:36:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
# ALSA sound devices.
|
2008-01-02 11:07:52 +01:00
|
|
|
KERNEL=="controlC[0-9]*", NAME="snd/%k", MODE="@sndMode@"
|
|
|
|
KERNEL=="hwC[D0-9]*", NAME="snd/%k", MODE="@sndMode@"
|
|
|
|
KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k", MODE="@sndMode@"
|
|
|
|
KERNEL=="midiC[D0-9]*", NAME="snd/%k", MODE="@sndMode@"
|
|
|
|
KERNEL=="timer", NAME="snd/%k", MODE="@sndMode@"
|
|
|
|
KERNEL=="seq", NAME="snd/%k", MODE="@sndMode@"
|
2007-03-04 00:20:08 +01:00
|
|
|
|
2008-01-08 01:16:49 +01:00
|
|
|
KERNEL=="kqemu", NAME="%k", MODE="0666"
|
2007-03-04 00:20:08 +01:00
|
|
|
|
2008-02-04 11:52:58 +01:00
|
|
|
|
2007-03-04 00:20:08 +01:00
|
|
|
# Firmware loading.
|
|
|
|
SUBSYSTEM=="firmware", ACTION=="add", RUN+="@firmwareLoader@"
|