mkimage-profiles/features.in/l10n/live/image-scripts.d/50-l10n-kbd
Michael Shigorin b5ff2b24b4 initial l10n feature
Aimed at live images at first but should cover installers as well.

This has been brewing for quite some time and while the proper
implementation is considerably more complex (and hard to do)
looks like there's demand for the particular important use case,
namely LiveCDs for Russian users, so this code has been shared
with a few people before merge.
2014-11-14 15:07:09 +03:00

18 lines
356 B
Bash
Executable File

#!/bin/sh
# partial port of livecd-setlocale (kbd bits)
CONFIG=/etc/sysconfig/keyboard
# Requires: console-scripts
if [ -s "$CONFIG" ]; then
echo "** l10n-kbd: expected $CONFIG to be an empty file" >&2
exit 0
fi
if [ -z "$GLOBAL_KEYTABLE" ]; then
echo "** l10n-kbd: empty GLOBAL_KEYTABLE" >&2
exit 0
fi
echo "KEYTABLE=$GLOBAL_KEYTABLE" > "$CONFIG"