[package] base-files: don't stop hotplug events for ppp interfaces, similar fix like...
[openwrt/svn-archive/archive.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 }
19
20 DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) {
21 makedev /dev/snd/%DEVICENAME% 0644
22 next-event
23 }
24
25 DEVICENAME ~~ ^lp[0-9]$ {
26 makedev /dev/%DEVICENAME% 0644
27 next-event
28 }
29
30 DEVPATH is set, SUBSYSTEM == input {
31 makedev /dev/input/%DEVICENAME% 0644
32 }
33
34 DEVICENAME == device-mapper {
35 makedev /dev/mapper/control 0600
36 }
37
38 DEVPATH is set {
39 makedev /dev/%DEVICENAME% 0644
40 }
41
42 FIRMWARE is set, ACTION == add {
43 load-firmware /lib/firmware
44 next-event
45 }