mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
6a522681e1
Modern rules are expected to call notification and postprocessing with the RUN key. For compatibility the current behavior can be emulated with an external helper. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
# 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.
|
|
#
|
|
# See the udev.rules.examples file for more examples of how to create rules
|
|
#
|
|
|
|
# if this is a ide cdrom, name it the default name, and create a symlink to cdrom
|
|
BUS=="ide", KERNEL=="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK+="cdrom"
|
|
|
|
# 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=="midiC[D0-9]*", NAME="snd/%k"
|
|
KERNEL=="timer", NAME="snd/%k"
|
|
KERNEL=="seq", NAME="snd/%k"
|
|
|
|
# input devices
|
|
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"
|
|
|
|
# USB devices
|
|
KERNEL=="hiddev*", NAME="usb/%k"
|
|
KERNEL=="auer*", NAME="usb/%k"
|
|
KERNEL=="legousbtower*", NAME="usb/%k"
|
|
KERNEL=="dabusb*", NAME="usb/%k"
|
|
BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
|
|
|
|
# CAPI devices
|
|
KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20"
|
|
KERNEL=="capi*", NAME="capi/%n"
|
|
|
|
# Network devices
|
|
KERNEL=="tun", NAME="net/%k"
|
|
|
|
# raw devices
|
|
KERNEL=="raw[0-9]*", NAME="raw/%k"
|
|
|
|
# emulate dev.d/
|
|
RUN="/sbin/udev_run_devd"
|