]>
Commit | Line | Data |
---|---|---|
663996b3 MS |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
e3bff60a MP |
3 | # run a command on remove events |
4 | ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" | |
5 | ACTION=="remove", GOTO="default_end" | |
6 | ||
663996b3 MS |
7 | SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}" |
8 | ||
9 | # select "system RTC" or just use the first one | |
10 | SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc" | |
11 | SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100" | |
12 | ||
13 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb" | |
663996b3 MS |
14 | ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}" |
15 | ||
e3bff60a | 16 | ACTION!="add", GOTO="default_end" |
663996b3 MS |
17 | |
18 | SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666" | |
19 | SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666" | |
20 | SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620" | |
60f067b4 JS |
21 | SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620" |
22 | SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620" | |
23 | SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620" | |
663996b3 | 24 | SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty" |
52ad194e | 25 | KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout" |
663996b3 MS |
26 | |
27 | SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640" | |
28 | ||
e842803a | 29 | SUBSYSTEM=="input", GROUP="input" |
60f067b4 | 30 | SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664" |
663996b3 MS |
31 | |
32 | SUBSYSTEM=="video4linux", GROUP="video" | |
663996b3 | 33 | SUBSYSTEM=="graphics", GROUP="video" |
52ad194e | 34 | SUBSYSTEM=="drm", KERNEL!="renderD*", GROUP="video" |
663996b3 | 35 | SUBSYSTEM=="dvb", GROUP="video" |
81c58355 MB |
36 | SUBSYSTEM=="media", GROUP="video" |
37 | SUBSYSTEM=="cec", GROUP="video" | |
663996b3 | 38 | |
52ad194e MB |
39 | SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="render", MODE="@GROUP_RENDER_MODE@" |
40 | SUBSYSTEM=="kfd", GROUP="render", MODE="@GROUP_RENDER_MODE@" | |
41 | ||
663996b3 MS |
42 | SUBSYSTEM=="sound", GROUP="audio", \ |
43 | OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer" | |
44 | ||
45 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" | |
46 | ||
47 | SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video" | |
48 | SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video" | |
49 | SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video" | |
50 | SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video" | |
51 | ||
52 | KERNEL=="parport[0-9]*", GROUP="lp" | |
53 | SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp" | |
54 | SUBSYSTEM=="ppdev", GROUP="lp" | |
55 | KERNEL=="lp[0-9]*", GROUP="lp" | |
56 | KERNEL=="irlpt[0-9]*", GROUP="lp" | |
57 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp" | |
58 | ||
59 | SUBSYSTEM=="block", GROUP="disk" | |
663996b3 MS |
60 | SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom" |
61 | SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom" | |
62 | KERNEL=="sch[0-9]*", GROUP="cdrom" | |
63 | KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" | |
64 | KERNEL=="pktcdvd", GROUP="cdrom" | |
65 | ||
66 | SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape" | |
67 | SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk" | |
68 | KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk" | |
e842803a MB |
69 | KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control" |
70 | KERNEL=="btrfs-control", GROUP="disk" | |
663996b3 MS |
71 | KERNEL=="rawctl", GROUP="disk" |
72 | SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk" | |
73 | SUBSYSTEM=="aoe", GROUP="disk", MODE="0220" | |
74 | SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" | |
75 | ||
60f067b4 | 76 | KERNEL=="rfkill", MODE="0664" |
663996b3 MS |
77 | KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun" |
78 | ||
79 | KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse" | |
80 | ||
81c58355 MB |
81 | KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@" |
82 | ||
2897b343 MP |
83 | SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm" |
84 | ||
e3bff60a | 85 | LABEL="default_end" |