add keymap script

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2021-04-12 08:17:26 +02:00 committed by Vincent-FK
parent 9a61dd6500
commit 81dfe214d4
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
# Check number of args
if [ ${#} -ne 1 ]; then
echo "Usage: $(basename ${0}) keymap_file"
exit 1
fi
if [ "${1}" = "reset" ]; then
keymap_file="/etc/fkgpiod.conf"
else
keymap_file="${1}"
fi
echo "LOAD ${keymap_file}" >/tmp/fkgpiod.fifo 2>/dev/null
exit 0