aboutsummaryrefslogtreecommitdiffstats
path: root/name.sh
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-06-17 14:32:25 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-06-17 14:32:25 +0200
commitfd1bab80e5f9e514facce49c1a462c04ed9df991 (patch)
tree7f5e0e3c73bf6cd23a67e39c88dd66dfe0254a81 /name.sh
parentc3f5e30069efd2d645121652f1eb63cdcb725194 (diff)
downloadinput-fd1bab80e5f9e514facce49c1a462c04ed9df991.tar.gz
fix bus name generation
Diffstat (limited to 'name.sh')
-rwxr-xr-xname.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/name.sh b/name.sh
index 288ea8f..f75e2af 100755
--- a/name.sh
+++ b/name.sh
@@ -1,7 +1,7 @@
#!/bin/sh
TYPE="$1"
-if test -f "/usr/include/linux/input-event-codes.h"; then
+if test -f "/usr/include/linux/input-event-codes.h" -a "$TYPE" != "BUS"; then
INPUT="/usr/include/linux/input-event-codes.h"
else
INPUT="/usr/include/linux/input.h"