dffca0b87f27c974275f903b9f4a84a05ae2c112
[openwrt.git] / package / base-files / files / etc / hotplug2-common.rules
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
7 DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) {
8 makedev /dev/%DEVICENAME% 0666
9 next-event
10 }
11
12 DEVICENAME ~~ (^tun|^tap[0-9]$) {
13 makedev /dev/net/%DEVICENAME% 0644
14 }
15
16 DEVICENAME ~~ ^ppp {
17 makedev /dev/%DEVICENAME% 0600
18 next-event
19 }
20
21 DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) {
22 makedev /dev/snd/%DEVICENAME% 0644
23 next-event
24 }
25
26 DEVICENAME ~~ ^lp[0-9]$ {
27 makedev /dev/%DEVICENAME% 0644
28 next-event
29 }
30
31 DEVPATH is set, SUBSYSTEM == input {
32 makedev /dev/input/%DEVICENAME% 0644
33 }
34
35 DEVICENAME == device-mapper {
36 makedev /dev/mapper/control 0600
37 }
38
39 DEVPATH is set {
40 makedev /dev/%DEVICENAME% 0644
41 }
42
43 FIRMWARE is set, ACTION == add {
44 load-firmware /lib/firmware
45 next-event
46 }
This page took 0.03959 seconds and 3 git commands to generate.