diff options
Diffstat (limited to 'lirc.sh')
-rwxr-xr-x | lirc.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/sh +INPUT="linux-input.h" +cat <<EOF +begin remote + name linux-input-layer + begin codes +EOF +awk " + /_MAX/ { next }; + /KEY_RESERVED/ { next }; + /#define (KEY|BTN)_/ { gsub(/KEY_/,\"\",\$2); + printf(\"\t\t%-20s 0x%04x\n\", + \$2,0x10000+strtonum(\$3)) } +" < $INPUT +cat <<EOF + end codes +end remote +EOF |