#!/bin/bash build() { # subshell to avoid namespace pollution ( l=$LANG unset LANG for cfg in /etc/{vconsole,locale}.conf; do [[ -s $cfg ]] && . "$cfg" done [[ $LANG ]] && LOCALE=$LANG LANG=$l if [[ $LOCALE = *[Uu][Tt][Ff]?(-)8 ]]; then touch "$BUILDROOT/keymap.utf8" uc=-u fi loadkeys -q $uc ${KEYMAP:-us} -b > "$BUILDROOT/keymap.bin" ) && add_runscript } help() { cat <