aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xname.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/name.sh b/name.sh
index 9da92fc..288ea8f 100755
--- a/name.sh
+++ b/name.sh
@@ -1,7 +1,11 @@
#!/bin/sh
TYPE="$1"
-INPUT="/usr/include/linux/input.h"
+if test -f "/usr/include/linux/input-event-codes.h"; then
+ INPUT="/usr/include/linux/input-event-codes.h"
+else
+ INPUT="/usr/include/linux/input.h"
+fi
awk "
/KEY_MIN_INTERESTING/ {next};