9c263dcb37
Turns out that vm images might need localization too, not just live ones.
18 lines
356 B
Bash
Executable File
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"
|