1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
systemd/etc/udev/suse/50-udev-default.rules

139 lines
5.4 KiB
Plaintext
Raw Normal View History

# console
2006-08-11 16:39:13 +04:00
KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
KERNEL=="vcs*", GROUP="tty", MODE="620", OPTIONS="last_rule"
KERNEL=="vcsa*", GROUP="tty", MODE="620", OPTIONS="last_rule"
KERNEL=="tty", GROUP="tty", MODE="666", OPTIONS="last_rule"
KERNEL=="tty[0-9]*", GROUP="tty", MODE="620", OPTIONS="last_rule"
KERNEL=="console", MODE="600", OPTIONS="last_rule"
KERNEL=="ptmx", GROUP="tty", MODE="666", OPTIONS="last_rule"
# serial devices
2006-08-11 16:39:13 +04:00
KERNEL=="tty[A-Z]*", GROUP="uucp"
KERNEL=="pppox*", GROUP="uucp"
KERNEL=="ircomm*", GROUP="uucp"
KERNEL=="modems/mwave*", GROUP="uucp"
KERNEL=="hvc*|hvsi*", GROUP="uucp"
KERNEL=="iseries/vtty*", 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"
# 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"
KERNEL=="video0", SYMLINK+="video"
KERNEL=="radio0", SYMLINK+="radio"
KERNEL=="vbi0", SYMLINK+="vbi"
KERNEL=="pmu", GROUP="video"
# dvb
SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
# input devices
2006-08-11 16:39:13 +04:00
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"
2006-08-11 16:39:13 +04:00
KERNEL=="lirc0", SYMLINK+="lirc"
# printer
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"
# 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"
KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
KERNEL=="mwave", NAME="modems/%k"
KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k"
KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k"
# network
2006-08-11 16:39:13 +04:00
KERNEL=="tun", NAME="net/%k", MODE="0600"
# misc devices
2006-08-11 16:39:13 +04:00
KERNEL=="mem|kmem", GROUP="kmem", MODE="640"
KERNEL=="port", GROUP="kmem", MODE="640"
KERNEL=="nvram", GROUP="kmem", MODE="600"
KERNEL=="null", MODE="666"
KERNEL=="zero", MODE="666"
KERNEL=="full", MODE="622"
KERNEL=="random", MODE="666"
KERNEL=="urandom", MODE="644"
2006-03-21 21:26:12 +03:00
KERNEL=="rtc", MODE="600"
KERNEL=="sonypi", MODE="0666"
KERNEL=="agpgart", MODE="0600", GROUP="video"
2006-08-11 16:39:13 +04:00
KERNEL=="djs*", MODE="644"
KERNEL=="sgi_*", MODE="666"
KERNEL=="rrom*", MODE="400"
KERNEL=="rflash*", MODE="400"
KERNEL=="usbscanner*", MODE="644"
KERNEL=="3270/ttycons*", MODE="600"
KERNEL=="3270/tub*", MODE="666"
KERNEL=="3270/tubcons*", MODE="600"
KERNEL=="ica", MODE="666"
KERNEL=="z90crypt", MODE="666"
KERNEL=="mmtimer", MODE="644"
KERNEL=="auer[0-9]*" NAME="usb/%k"
# packet writing interface
KERNEL=="pktcdvd", NAME="pktcdvd/control"
KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
# fix floppy devices
KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh"
2006-08-20 20:17:58 +04:00
KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M $root/%k"
KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
# block devices
SUBSYSTEM=="block", GROUP="disk", MODE="0640"
# 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"
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"
# misc storage devices (non-block)
2006-08-11 16:39:13 +04:00
KERNEL=="sg*", GROUP="disk", MODE="640"
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"
KERNEL=="rawctl*|raw[0-9]*", NAME="raw/%k", GROUP="disk"
KERNEL=="osst*|nosst*", NAME="%k", GROUP="disk"
KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
# libusb device access
SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
# kernel firmware loader
SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"