Skip to content

Commit

Permalink
keymap: fall back to us if KEYMAP is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Jul 2, 2016
1 parent 08762d8 commit 89bf8b5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions install/keymap
Expand Up @@ -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
}

Expand Down

0 comments on commit 89bf8b5

Please sign in to comment.