Skip to content

Commit 097e961

Browse files
committed
add keymap script
Signed-off-by: Michel-FK <[email protected]>
1 parent 45343de commit 097e961

File tree

1 file changed

+14
-0
lines changed
  • FunKey/board/funkey/rootfs-overlay/usr/local/sbin

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# Check number of args
4+
if [ ${#} -ne 1 ]; then
5+
echo "Usage: $(basename ${0}) keymap_file"
6+
exit 1
7+
fi
8+
if [ "${1}" = "reset" ]; then
9+
keymap_file="/etc/fkgpiod.conf"
10+
else
11+
keymap_file="${1}"
12+
fi
13+
echo "LOAD ${keymap_file}" >/tmp/fkgpiod.fifo 2>/dev/null
14+
exit 0

0 commit comments

Comments
 (0)