summaryrefslogtreecommitdiff
path: root/meta-raspberrypi/recipes-bsp/gpio-shutdown/files/gpio-shutdown-keymap.sh
blob: bae50daf14cdb3c95e486ef5e6a25f01e0c44ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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