mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
add keymap script
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
45343de238
commit
097e961b22
14
FunKey/board/funkey/rootfs-overlay/usr/local/sbin/keymap
Executable file
14
FunKey/board/funkey/rootfs-overlay/usr/local/sbin/keymap
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user