diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2009-07-18 16:59:46 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2009-07-18 16:59:46 +0200 |
commit | 0b8d9a73335bdd69aa600a0aae42645374cecae9 (patch) | |
tree | 49b16adddd509afd23f724def6bafc3e5ffc1f51 /extras | |
parent | 6e40a05718d570a13a267c4fb49e9b6d543330f9 (diff) |
extras/keymap: teach findkeyboards about USB keyboards
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/keymap/findkeyboards | 9 |
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 |