summaryrefslogtreecommitdiff
path: root/src/udev/keymap
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2013-05-03 23:43:12 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-03 22:45:13 -0400
commitc95686c6ed1879f959a4eb70249167e297751834 (patch)
tree53254ff5b69fc6eda7718a16e951e98727675ba2 /src/udev/keymap
parentd2bbca6855b174fb7ea90b4767a886bb88bd2400 (diff)
keymap/findkeyboards: avoid throwaway attribute-walk
Diffstat (limited to 'src/udev/keymap')
-rwxr-xr-xsrc/udev/keymap/findkeyboards2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/keymap/findkeyboards b/src/udev/keymap/findkeyboards
index 9ce27429b2..c6b50d12d0 100755
--- a/src/udev/keymap/findkeyboards
+++ b/src/udev/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