diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-10-26 11:11:15 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-10-26 11:11:15 +0200 |
commit | 6882949d7a43932b80faa962d019d37fafcf044a (patch) | |
tree | 11343a8c7040329c7a297f2810df44cb0634b3ef /extras/keymap | |
parent | 8ab7a9be03441db21d459cbb9c08400377c3556d (diff) |
findkeyboards: Consistently use spaces instead of tabs
Diffstat (limited to 'extras/keymap')
-rwxr-xr-x | extras/keymap/findkeyboards | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/extras/keymap/findkeyboards b/extras/keymap/findkeyboards index fd64301da6..5d636de3af 100755 --- a/extras/keymap/findkeyboards +++ b/extras/keymap/findkeyboards @@ -20,7 +20,7 @@ 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` + 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" | grep -q '^DEVNAME='; then @@ -28,12 +28,12 @@ keyboard_devices() { fi if echo "$walk" | grep -q 'DRIVERS=="atkbd"'; then echo -n 'AT keyboard: ' - elif echo "$env" | grep -q '^ID_USB_DRIVER=usbhid'; then + elif echo "$env" | grep -q '^ID_USB_DRIVER=usbhid'; then echo -n 'USB keyboard: ' - else - echo -n 'Unknown type: ' + else + echo -n 'Unknown type: ' fi - udevadm info --query=name --path=$dev + udevadm info --query=name --path=$dev done # modules @@ -43,11 +43,11 @@ keyboard_devices() { module="$module `udevadm trigger --verbose --dry-run --subsystem-match=input --attr-match=name='Sony Vaio Keys'`" for m in $module; do - evdev=`ls -d $m/event* 2>/dev/null` - if [ -e "$evdev/dev" ]; then - echo -n 'module: ' - udevadm info --query=name --path=$evdev - fi + evdev=`ls -d $m/event* 2>/dev/null` + if [ -e "$evdev/dev" ]; then + echo -n 'module: ' + udevadm info --query=name --path=$evdev + fi done } |