2 # uncomment me to log hotplug events
4 # exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%"
7 $include /etc/hotplug2-platform.rules
9 DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) {
10 makedev /dev/%DEVICENAME% 0666
14 DEVICENAME ~~ (^tun|^tap[0-9]$) {
15 makedev /dev/net/%DEVICENAME% 0644
19 makedev /dev/%DEVICENAME% 0600
22 DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) {
23 makedev /dev/snd/%DEVICENAME% 0644
27 DEVICENAME ~~ ^lp[0-9]$ {
28 makedev /dev/%DEVICENAME% 0644
32 DEVPATH is set, SUBSYSTEM == input {
33 makedev /dev/input/%DEVICENAME% 0644
36 DEVICENAME == device-mapper {
37 makedev /dev/mapper/control 0600
41 makedev /dev/%DEVICENAME% 0644
44 FIRMWARE is set, ACTION == add {
45 exec /sbin/hotplug-call firmware
46 load-firmware /lib/firmware