Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../10i18n
File: parse-i18n.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
inst_key_val() {
[2] Fix | Delete
local _value
[3] Fix | Delete
local _file
[4] Fix | Delete
local _default
[5] Fix | Delete
_file="$1"; shift
[6] Fix | Delete
_key="$1"; shift
[7] Fix | Delete
_default="$1"; shift
[8] Fix | Delete
_value="$(getarg $@)"
[9] Fix | Delete
[ -z "${_value}" ] && _value=$_default
[10] Fix | Delete
if [ -n "${_value}" ]; then
[11] Fix | Delete
printf '%s="%s"\n' ${_key} ${_value} >> $_file
[12] Fix | Delete
fi
[13] Fix | Delete
unset _file
[14] Fix | Delete
unset _value
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
inst_key_val /etc/vconsole.conf KEYMAP '' rd.vconsole.keymap KEYMAP -d KEYTABLE
[18] Fix | Delete
inst_key_val /etc/vconsole.conf FONT '' rd.vconsole.font FONT -d SYSFONT
[19] Fix | Delete
inst_key_val /etc/vconsole.conf FONT_MAP '' rd.vconsole.font.map FONT_MAP -d CONTRANS
[20] Fix | Delete
inst_key_val /etc/vconsole.conf FONT_UNIMAP '' rd.vconsole.font.unimap FONT_UNIMAP -d UNIMAP
[21] Fix | Delete
inst_key_val /etc/vconsole.conf UNICODE 1 rd.vconsole.font.unicode UNICODE vconsole.unicode
[22] Fix | Delete
inst_key_val /etc/vconsole.conf EXT_KEYMAP '' rd.vconsole.keymap.ext EXT_KEYMAP
[23] Fix | Delete
[24] Fix | Delete
inst_key_val /etc/locale.conf LANG '' rd.locale.LANG LANG
[25] Fix | Delete
inst_key_val /etc/locale.conf LC_ALL '' rd.locale.LC_ALL LC_ALL
[26] Fix | Delete
[27] Fix | Delete
if [ -f /etc/locale.conf ]; then
[28] Fix | Delete
. /etc/locale.conf
[29] Fix | Delete
export LANG
[30] Fix | Delete
export LC_ALL
[31] Fix | Delete
fi
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function