summaryrefslogtreecommitdiff
path: root/extras/keymap/findkeyboards
diff options
context:
space:
mode:
Diffstat (limited to 'extras/keymap/findkeyboards')
-rwxr-xr-xextras/keymap/findkeyboards9
1 files changed, 7 insertions, 2 deletions
diff --git a/extras/keymap/findkeyboards b/extras/keymap/findkeyboards
index e39084cde9..4fafc7775d 100755
--- a/extras/keymap/findkeyboards
+++ b/extras/keymap/findkeyboards
@@ -21,12 +21,17 @@ keyboard_devices() {
# standard AT keyboard
for dev in $input_devs; do
- info=`udevadm info --attribute-walk --path=$dev`
+ walk=`udevadm info --attribute-walk --path=$dev`
+ env=`udevadm info --query=env --path=$dev`
- if echo "$info" | grep -q 'DRIVERS=="atkbd"'; then
+ if echo "$walk" | grep -q 'DRIVERS=="atkbd"'; then
echo -n 'AT keyboard: '
udevadm info --query=name --path=$dev
fi
+ if echo "$env"| grep -q '^ID_CLASS=kbd' && echo "$env" | grep -q '^ID_USB_DRIVER=usbhid'; then
+ echo -n 'USB keyboard: '
+ udevadm info --query=name --path=$dev
+ fi
done
# modules