From a8a614a7018918e987585c2d07189024c640cb3a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 25 Nov 2005 18:50:42 +0100 Subject: remove outdated and misleading stuff Packagers who still need this, should carry it in their own package. It just causes too much trouble to users to have it in the tree and expect that it's needed or the way to do it. Signed-off-by: Kay Sievers --- extras/inputdev.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 extras/inputdev.sh (limited to 'extras/inputdev.sh') diff --git a/extras/inputdev.sh b/extras/inputdev.sh deleted file mode 100644 index 82e4fdc374..0000000000 --- a/extras/inputdev.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -e -# -# Scans /proc/bus/input/devices for the given device. -# -# (c) 2004 Darren Salt -# GPL v2 or later applies. - -[ "$1" ] || exit 0 - -# input device name, less leading "input/" -DEVICE=${1#input/} - -# "|"-separated list. -# The first found in the given device's "N:" line will be output. -DEFAULT_KEYWORDS='dvb|saa7134' -KEYWORDS=${2:-$DEFAULT_KEYWORDS} - -exec sed -nre ' - /^I:/ { - : gather - N - /\nH:/! b gather - /'"$DEVICE"'/ { - s/^.*\nN:[^\n]*("|\b)('"$KEYWORDS"')("|\b)[^\n]*\n.*$/inputdev/ - T - p - } - } -' < /proc/bus/input/devices - -- cgit v1.2.3-54-g00ecf