findkeyboards revision 3e2147858f21943d5f4a781c60f33ac22c6096ed
341N/A# Find "real" keyboard devices and print their device path. 341N/A# Author: Martin Pitt <martin.pitt@ubuntu.com> 943N/A# Copyright (C) 2009, Canonical Ltd. 341N/A# This program is free software; you can redistribute it and/or modify it 919N/A# under the terms of the GNU General Public License as published by 919N/A# the Free Software Foundation; either version 2 of the License, or 919N/A# (at your option) any later version. 919N/A# This program is distributed in the hope that it will be useful, but 919N/A# WITHOUT ANY WARRANTY; without even the implied warranty of 919N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 919N/A# General Public License for more details. 919N/A# returns OK if $1 contains $2 919N/A [ "${1#*$2*}" != "$1" ] 919N/A# returns OK if $1 contains $2 at the beginning 962N/A# print a list of input devices which are keyboard-like 341N/A # filter out non-event devices, such as the parent input devices which have no devnode 341N/A echo -n 'AT keyboard: ' 341N/A echo -n 'USB keyboard: ' 341N/A echo -n 'Unknown type: '