From 4091baaaf421c8199430bceae0485044b74754bd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Jun 2011 19:24:09 +0200 Subject: [PATCH] udev: dynamically generate seat where applicable from ID_PATH --- src/71-seat.rules | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/71-seat.rules b/src/71-seat.rules index c13bf08d..636cafd3 100644 --- a/src/71-seat.rules +++ b/src/71-seat.rules @@ -15,7 +15,10 @@ SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat" SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="0001", ENV{ID_AUTOSEAT}="1" IMPORT{parent}="ID_SEAT" -ENV{ID_AUTOSEAT}=="1", ENV{ID_SEAT}=="", ENV{ID_SEAT}="seat-foo" -ENV{ID_SEAT}!="", TAG+="seat-foo" + +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}" LABEL="seat_end" -- 2.39.5