[package] base-files:
[openwrt.git] / package / base-files / files / etc / hotplug2-common.rules
1
2 # uncomment me to log hotplug events
3 # DEVPATH is set {
4 # nothrottle
5 # exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%"
6 # }
7
8 DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio|hvc) {
9 nothrottle
10 makedev /dev/%DEVICENAME% 0666
11 next
12 }
13
14 DEVICENAME ~~ (tun|tap[0-9]) {
15 nothrottle
16 makedev /dev/net/%DEVICENAME% 0644
17 }
18
19 DEVICENAME ~~ (ppp) {
20 nothrottle
21 makedev /dev/%DEVICENAME% 0600
22 next
23 }
24
25 DEVICENAME ~~ (controlC[0-9]|pcmC0D0*|timer) {
26 nothrottle
27 makedev /dev/snd/%DEVICENAME% 0644
28 next
29 }
30
31 DEVICENAME ~~ (lp[0-9]) {
32 nothrottle
33 makedev /dev/%DEVICENAME% 0644
34 next
35 }
36
37 DEVPATH is set, SUBSYSTEM ~~ (input) {
38 nothrottle
39 makedev /dev/input/%DEVICENAME% 0644
40 }
41
42 DEVICENAME == device-mapper {
43 nothrottle
44 makedev /dev/mapper/control 0600
45 }
46
47
48 DEVPATH is set {
49 nothrottle
50 makedev /dev/%DEVICENAME% 0644
51 }
52
53 FIRMWARE is set, ACTION == add {
54 nothrottle
55 load-firmware /lib/firmware
56 next
57 }
This page took 0.06451 seconds and 5 git commands to generate.