|
Harald Hoyer |
4734ec |
From 443fb524877f28fd072f63c4dd98b74926d2513a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
4734ec |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
4734ec |
Date: Thu, 5 Dec 2013 15:06:39 +0100
|
|
Harald Hoyer |
4734ec |
Subject: [PATCH] 10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf
|
|
Harald Hoyer |
4734ec |
generation
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
---
|
|
Harald Hoyer |
4734ec |
modules.d/10i18n/parse-i18n.sh | 27 +++++++++++++--------------
|
|
Harald Hoyer |
4734ec |
1 file changed, 13 insertions(+), 14 deletions(-)
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
diff --git a/modules.d/10i18n/parse-i18n.sh b/modules.d/10i18n/parse-i18n.sh
|
|
Harald Hoyer |
4734ec |
index 416a746..135c57b 100755
|
|
Harald Hoyer |
4734ec |
--- a/modules.d/10i18n/parse-i18n.sh
|
|
Harald Hoyer |
4734ec |
+++ b/modules.d/10i18n/parse-i18n.sh
|
|
Harald Hoyer |
4734ec |
@@ -6,28 +6,27 @@ inst_key_val() {
|
|
Harald Hoyer |
4734ec |
local _value
|
|
Harald Hoyer |
4734ec |
local _file
|
|
Harald Hoyer |
4734ec |
local _default
|
|
Harald Hoyer |
4734ec |
- _default=$1
|
|
Harald Hoyer |
4734ec |
- shift
|
|
Harald Hoyer |
4734ec |
- _file=$1
|
|
Harald Hoyer |
4734ec |
- shift
|
|
Harald Hoyer |
4734ec |
- _value=$(getarg $@)
|
|
Harald Hoyer |
4734ec |
+ _file="$1"; shift
|
|
Harald Hoyer |
4734ec |
+ _key="$1"; shift
|
|
Harald Hoyer |
4734ec |
+ _default="$1"; shift
|
|
Harald Hoyer |
4734ec |
+ _value="$(getarg $@)"
|
|
Harald Hoyer |
4734ec |
[ -z "${_value}" ] && _value=$_default
|
|
Harald Hoyer |
4734ec |
if [ -n "${_value}" ]; then
|
|
Harald Hoyer |
4734ec |
- printf '%s="%s"\n' $2 ${_value} >> $_file
|
|
Harald Hoyer |
4734ec |
+ printf '%s="%s"\n' $key ${_value} >> $_file
|
|
Harald Hoyer |
4734ec |
fi
|
|
Harald Hoyer |
4734ec |
unset _file
|
|
Harald Hoyer |
4734ec |
unset _value
|
|
Harald Hoyer |
4734ec |
}
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/vconsole.conf rd.vconsole.keymap vconsole.keymap KEYMAP -d KEYTABLE
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/vconsole.conf rd.vconsole.font vconsole.font FONT -d SYSFONT
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/vconsole.conf rd.vconsole.font.map vconsole.font.map FONT_MAP -d CONTRANS
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/vconsole.conf rd.vconsole.font.unimap vconsole.font.unimap FONT_UNIMAP -d UNIMAP
|
|
Harald Hoyer |
4734ec |
-inst_key_val 1 /etc/vconsole.conf rd.vconsole.font.unicode vconsole.font.unicode UNICODE vconsole.unicode
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/vconsole.conf rd.vconsole.keymap.ext vconsole.keymap.ext EXT_KEYMAP
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf KEYMAP '' rd.vconsole.keymap KEYMAP -d KEYTABLE
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf FONT '' rd.vconsole.font FONT -d SYSFONT
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf FONT_MAP '' rd.vconsole.font.map FONT_MAP -d CONTRANS
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf FONT_UNIMAP '' rd.vconsole.font.unimap FONT_UNIMAP -d UNIMAP
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf UNICODE 1 rd.vconsole.font.unicode UNICODE vconsole.unicode
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/vconsole.conf EXT_KEYMAP '' rd.vconsole.keymap.ext EXT_KEYMAP
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/locale.conf rd.locale.LANG locale.LANG LANG
|
|
Harald Hoyer |
4734ec |
-inst_key_val '' /etc/locale.conf rd.locale.LC_ALL locale.LC_ALL LC_ALL
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/locale.conf LANG '' rd.locale.LANG LANG
|
|
Harald Hoyer |
4734ec |
+inst_key_val /etc/locale.conf LC_ALL '' rd.locale.LC_ALL LC_ALL
|
|
Harald Hoyer |
4734ec |
|
|
Harald Hoyer |
4734ec |
if [ -f /etc/locale.conf ]; then
|
|
Harald Hoyer |
4734ec |
. /etc/locale.conf
|