summaryrefslogtreecommitdiff
path: root/src/71-seat.rules
blob: 6e19d5b34d9a089fca9c3d45c51a317175df2145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.

ACTION=="remove", GOTO="seat_end"

TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"
SUBSYSTEM=="input", KERNEL=="input*", TAG+="seat"
SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat"

SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="0001", ENV{ID_AUTOSEAT}="1"

TAG=="seat", ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH}!="", PROGRAM="/bin/sh -c 'echo $env{ID_PATH} | /bin/sed -e s/[:.]/_/g'", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$result"

LABEL="seat_end"