summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/keymap8
1 files changed, 3 insertions, 5 deletions
diff --git a/install/keymap b/install/keymap
index 2cf4d15..2880f15 100644
--- a/install/keymap
+++ b/install/keymap
@@ -7,12 +7,10 @@ build() {
. "$BASEDIR/etc/rc.conf"
if [[ $KEYMAP ]]; then
if [[ $LOCALE = *[Uu][Tt][Ff]-8 ]]; then
- printf '%s\n' "UTF8=yes" > "$BUILDROOT/keymap.utf8"
- /bin/loadkeys -q -u $KEYMAP -b > "$BUILDROOT/keymap.bin"
- else
- printf '%s\n' "UTF8=no" > "$BUILDROOT/keymap.utf8"
- /bin/loadkeys -q $KEYMAP -b > "$BUILDROOT/keymap.bin"
+ touch "$BUILDROOT/keymap.utf8"
+ uc=-u
fi
+ /bin/loadkeys -q $uc $KEYMAP -b > "$BUILDROOT/keymap.bin"
fi
)