From 89bf8b56137196907b25e9d131e82dec90edaff0 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 2 Jul 2016 11:02:24 -0400 Subject: keymap: fall back to us if KEYMAP is not defined ref: https://bugs.archlinux.org/task/44805 --- install/keymap | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'install') diff --git a/install/keymap b/install/keymap index c1948b1..7de6acb 100644 --- a/install/keymap +++ b/install/keymap @@ -14,16 +14,11 @@ build() { [[ $LANG ]] && LOCALE=$LANG LANG=$l - if [[ $KEYMAP ]]; then - if [[ $LOCALE = *[Uu][Tt][Ff]?(-)8 ]]; then - touch "$BUILDROOT/keymap.utf8" - uc=-u - fi - loadkeys -q $uc $KEYMAP -b > "$BUILDROOT/keymap.bin" - else - warning "keymap: hook specified, but no KEYMAP found in configuration" - return 1 + 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 } -- cgit v1.2.3-24-g4f1b