2011-05-26 07:21:16 +07:00
|
|
|
# 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"
|
|
|
|
|
2011-06-29 00:23:38 +07:00
|
|
|
TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
|
|
|
|
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"
|
2011-05-26 07:21:16 +07:00
|
|
|
SUBSYSTEM=="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"
|
|
|
|
|
|
|
|
IMPORT{parent}="ID_SEAT"
|
2011-06-29 00:24:09 +07:00
|
|
|
|
|
|
|
ENV{ID_AUTOSEAT}=="1", ENV{ID_SEAT}=="", ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
|
|
|
|
ENV{ID_AUTOSEAT}=="1", ENV{ID_SEAT}=="", ENV{ID_PATH}!="", ENV{ID_SEAT}="seat-$env{ID_PATH}"
|
|
|
|
|
|
|
|
ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"
|
2011-05-26 07:21:16 +07:00
|
|
|
|
|
|
|
LABEL="seat_end"
|