diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2013-05-03 23:43:12 +0300 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-06-03 09:09:27 -0400 |
commit | 8ea0e39f1f324f7264ed653cbb71d741e442472d (patch) | |
tree | 7426ae64746345205c0f256bf503364d3bc695c3 /src | |
parent | 49799c750d18beab7a8af26071893780252118b3 (diff) |
keymap/findkeyboards: avoid throwaway attribute-walk
Diffstat (limited to 'src')
-rwxr-xr-x | src/keymap/findkeyboards | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap/findkeyboards b/src/keymap/findkeyboards index 9ce27429b2..c6b50d12d0 100755 --- a/src/keymap/findkeyboards +++ b/src/keymap/findkeyboards @@ -33,12 +33,12 @@ str_line_starts() { keyboard_devices() { # standard AT keyboard for dev in `udevadm trigger --dry-run --verbose --property-match=ID_INPUT_KEYBOARD=1`; do - walk=`udevadm info --attribute-walk --path=$dev` env=`udevadm info --query=env --path=$dev` # filter out non-event devices, such as the parent input devices which have no devnode if ! echo "$env" | str_line_starts 'DEVNAME='; then continue fi + walk=`udevadm info --attribute-walk --path=$dev` if strstr "$walk" 'DRIVERS=="atkbd"'; then echo -n 'AT keyboard: ' elif echo "$env" | str_line_starts 'ID_USB_DRIVER=usbhid'; then |