summaryrefslogtreecommitdiffstats
path: root/install/keymap
blob: 2880f15bd75b0cfe26693cc8a0d9c5b88f63add5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

build() {

    # subshell to avoid namespace pollution
    (
        . "$BASEDIR/etc/rc.conf"
        if [[ $KEYMAP ]]; then
            if [[ $LOCALE = *[Uu][Tt][Ff]-8 ]]; then
                touch "$BUILDROOT/keymap.utf8"
                uc=-u
            fi
            /bin/loadkeys -q $uc $KEYMAP -b > "$BUILDROOT/keymap.bin"
        fi
    )

    (( $? == 0 )) && SCRIPT=keymap
}

help() {
    cat<<HELPEOF
This hook loads keymap(s) specified in rc.conf during early userspace.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: