[package] base-files: Remove deprecated hotplug2 commands, update old commands to new
[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 next-event
19 }
20
21 DEVICENAME ~~ (controlC[0-9]|pcmC0D0*|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
40 DEVPATH is set {
41 makedev /dev/%DEVICENAME% 0644
42 }
43
44 FIRMWARE is set, ACTION == add {
45 load-firmware /lib/firmware
46 next-event
47 }