chiark / gitweb /
logind: make sure we hand out write fd, and keep read fd for session end detection
[elogind.git] / src / 71-seat.rules
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
7
8 ACTION=="remove", GOTO="seat_end"
9
10 TAG=="uaccess", TAG+="seat"
11 SUBSYSTEM=="input", TAG+="seat"
12 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
13 SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat"
14 SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="0001", ENV{ID_AUTOSEAT}="1"
15
16 IMPORT{parent}="ID_SEAT"
17 ENV{ID_AUTOSEAT}=="1", ENV{ID_SEAT}=="", ENV{ID_SEAT}="seat-foo"
18 ENV{ID_SEAT}!="", TAG+="seat-foo"
19
20 LABEL="seat_end"