diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-13 19:45:36 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-13 19:45:36 +0200 |
commit | d4b36d99f1b3821243d3f122128623dd2653b1cf (patch) | |
tree | 78a0bb5560250e171c4f0262095e21ddf3ef19a5 | |
parent | 82e487c56d0947796793b6fd2836264328defe9f (diff) |
seat: udev - use ID_PATH_TAG instead of 'sed' hack
-rw-r--r-- | src/71-seat.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/71-seat.rules b/src/71-seat.rules index 6e19d5b34d..dca5e5f2ad 100644 --- a/src/71-seat.rules +++ b/src/71-seat.rules @@ -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}!="", PROGRAM="/bin/sh -c 'echo $env{ID_PATH} | /bin/sed -e s/[:.]/_/g'", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$result" +TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}" LABEL="seat_end" |