aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh')
-rw-r--r--recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh b/recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh
new file mode 100644
index 0000000..bae50da
--- /dev/null
+++ b/recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+##
+# Bind the gpio-shutdown keycode as Keyboard signal and load it to the
+# keymap during startup.
+##
+case "$1" in
+ start)
+ # Inject the gpio keycode to keymap
+ echo "keycode 116 = KeyboardSignal" | loadkeys
+ ;;
+ *)
+ ;;
+esac