Root/package/base-files/files/etc/hotplug2-common.rules

1
2DEVICENAME ~~ (null|full|ptmx|zero|gpio|hvc) {
3    nothrottle
4    makedev /dev/%DEVICENAME% 0666
5    next
6}
7
8DEVICENAME ~~ (tun|tap[0-9]) {
9    nothrottle
10    makedev /dev/net/%DEVICENAME% 0644
11}
12
13DEVICENAME ~~ (controlC[0-9]|pcmC0D0*|timer) {
14    nothrottle
15    makedev /dev/snd/%DEVICENAME% 0644
16    next
17}
18
19DEVICENAME ~~ (lp[0-9]) {
20    nothrottle
21    makedev /dev/%DEVICENAME% 0644
22    next
23}
24
25DEVPATH is set, SUBSYSTEM ~~ (input) {
26    nothrottle
27    makedev /dev/input/%DEVICENAME% 0644
28}
29
30DEVICENAME == device-mapper {
31    nothrottle
32    makedev /dev/mapper/control 0600
33    next
34}
35
36ACTION == add, DEVPATH is set {
37    nothrottle
38    makedev /dev/%DEVICENAME% 0644
39}
40
41ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty {
42    chmod 0666 /dev/%DEVICENAME%
43}
44
45ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp {
46    chmod 0600 /dev/%DEVICENAME%
47}
48
49ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set {
50    remove /dev/%DEVICENAME%
51}
52
53FIRMWARE is set, ACTION == add {
54    nothrottle
55    load-firmware /lib/firmware
56    next
57}
58

Archive Download this file



interactive