X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fudev%2Fkeymap%2Ffindkeyboards;h=c6b50d12d0af63d8e352e94a0862a7267cc5f765;hp=9ce27429b2620ad472975a5608e743115e8d31c4;hb=c95686c6ed1879f959a4eb70249167e297751834;hpb=3e2147858f21943d5f4a781c60f33ac22c6096ed diff --git a/src/udev/keymap/findkeyboards b/src/udev/keymap/findkeyboards index 9ce27429b..c6b50d12d 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