]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/udev/generate-keyboard-keys-list.sh
Merge pull request #16504 from poettering/read-file-ipc
[thirdparty/systemd.git] / src / udev / generate-keyboard-keys-list.sh
CommitLineData
7629744a 1#!/bin/sh
2set -eu
5c23128d 3
8e46eba4 4$1 -dM -include linux/input.h - </dev/null | awk '
cc5549ca
ZJS
5 /\<(KEY_(MAX|MIN_INTERESTING))|(BTN_(MISC|MOUSE|JOYSTICK|GAMEPAD|DIGI|WHEEL|TRIGGER_HAPPY))\>/ { next }
6 /^#define[ \t]+(KEY|BTN)_[^ ]+[ \t]+[0-9BK]/ { print $2 }
8e46eba4 7'