mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-12 15:08:55 +07:00
seat: udev - use ID_PATH_TAG instead of 'sed' hack
This commit is contained in:
parent
82e487c56d
commit
d4b36d99f1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user