]> err.no Git - systemd/commitdiff
logind: fix udev rule to generate valid tags, as a temporary fix until udev gains...
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 23:48:30 +0000 (01:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 23:48:30 +0000 (01:48 +0200)
src/71-seat.rules

index c564bac3f1cdd1fbf6fe3e0c984643790751a028..af174f92602efbfeb5551bf1c12c90066a5a78ea 100644 (file)
@@ -16,6 +16,6 @@ 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}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH}"
+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"