Commit 87f0430b authored by Anton Midyukov's avatar Anton Midyukov

l10n: fix 50-l10n-kbd for case, when console-scripts is not installed

parent 415d83b4
......@@ -4,16 +4,12 @@
CONFIG=/etc/sysconfig/keyboard
VCONSOLE_CONF=/etc/vconsole.conf
[ -n "$GLOBAL_KEYTABLE" ] || exit 0
# 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
echo "KEYTABLE=$GLOBAL_KEYTABLE" > "$CONFIG"
fi
echo "KEYTABLE=$GLOBAL_KEYTABLE" > "$CONFIG"
[ -f "$VCONSOLE_CONF" ] && echo "KEYMAP=$GLOBAL_KEYTABLE" >> "$VCONSOLE_CONF"
rpm -qf "$VCONSOLE_CONF" && echo "KEYMAP=$GLOBAL_KEYTABLE" >> "$VCONSOLE_CONF"
:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment