source: trunk/package/base-files/files/etc/hotplug2-common.rules @ 25282

Last change on this file since 25282 was 25282, checked in by acinonyx, 5 years ago

[package] hotplug2: Use stricter matching for rule regular expressions

File size: 840 bytes
Line 
1
2# uncomment me to log hotplug events
3# DEVPATH is set {
4#       exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%"
5# }
6
7DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) {
8        makedev /dev/%DEVICENAME% 0666
9        next-event
10}
11
12DEVICENAME ~~ (^tun|^tap[0-9]$) {
13        makedev /dev/net/%DEVICENAME% 0644
14}
15
16DEVICENAME ~~ ^ppp {
17        makedev /dev/%DEVICENAME% 0600
18        next-event
19}
20
21DEVICENAME ~~ (^controlC[0-9]$|^pcmC0D0|^timer$) {
22        makedev /dev/snd/%DEVICENAME% 0644
23        next-event
24}
25
26DEVICENAME ~~ ^lp[0-9]$ {
27        makedev /dev/%DEVICENAME% 0644
28        next-event
29}
30
31DEVPATH is set, SUBSYSTEM == input {
32        makedev /dev/input/%DEVICENAME% 0644
33}
34
35DEVICENAME == device-mapper {
36        makedev /dev/mapper/control 0600
37}
38
39DEVPATH is set {
40        makedev /dev/%DEVICENAME% 0644
41}
42
43FIRMWARE is set, ACTION == add {
44        load-firmware /lib/firmware
45        next-event
46}
Note: See TracBrowser for help on using the repository browser.