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$|^zero$|^gpio|^hvc) {
10 makedev /dev/%DEVICENAME% 0666
14 DEVICENAME ~~ (^tun|^tap[0-9]$) {
15 makedev /dev/net/%DEVICENAME% 0644
18 DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) {
19 makedev /dev/snd/%DEVICENAME% 0644
23 DEVICENAME ~~ ^lp[0-9]$ {
24 makedev /dev/%DEVICENAME% 0644
28 DEVPATH is set, SUBSYSTEM == input {
29 makedev /dev/input/%DEVICENAME% 0644
32 DEVICENAME == device-mapper {
33 makedev /dev/mapper/control 0600
37 ACTION == add, DEVPATH is set {
38 makedev /dev/%DEVICENAME% 0644
41 ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty {
42 chmod 0666 /dev/%DEVICENAME%
45 ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp {
46 chmod 0600 /dev/%DEVICENAME%
49 ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set {
50 remove /dev/%DEVICENAME%
53 FIRMWARE is set, ACTION == add {
54 exec /sbin/hotplug-call firmware
55 load-firmware /lib/firmware
59 SUBSYSTEM == platform {
60 exec /sbin/hotplug-call %SUBSYSTEM%