Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../10i18n
File: console_init.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
[ -n "$DRACUT_SYSTEMD" ] && exit 0
[2] Fix | Delete
[3] Fix | Delete
if [ -x $systemdutildir/systemd-vconsole-setup ]; then
[4] Fix | Delete
$systemdutildir/systemd-vconsole-setup "$@"
[5] Fix | Delete
fi
[6] Fix | Delete
[7] Fix | Delete
[ -e /etc/vconsole.conf ] && . /etc/vconsole.conf
[8] Fix | Delete
[9] Fix | Delete
DEFAULT_FONT=LatArCyrHeb-16
[10] Fix | Delete
DEFAULT_KEYMAP=/etc/sysconfig/console/default.kmap
[11] Fix | Delete
[12] Fix | Delete
set_keyboard() {
[13] Fix | Delete
local param
[14] Fix | Delete
[15] Fix | Delete
[ "${UNICODE}" = 1 ] && param=-u || param=-a
[16] Fix | Delete
kbd_mode ${param}
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
set_terminal() {
[20] Fix | Delete
local dev=$1
[21] Fix | Delete
[22] Fix | Delete
if [ "${UNICODE}" = 1 ]; then
[23] Fix | Delete
printf '\033%%G' >&7
[24] Fix | Delete
stty -F ${dev} iutf8
[25] Fix | Delete
else
[26] Fix | Delete
printf '\033%%@' >&7
[27] Fix | Delete
stty -F ${dev} -iutf8
[28] Fix | Delete
fi
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
set_keymap() {
[32] Fix | Delete
local utf_switch
[33] Fix | Delete
[34] Fix | Delete
if [ -z "${KEYMAP}" ]; then
[35] Fix | Delete
[ -f "${DEFAULT_KEYMAP}" ] && KEYMAP=${DEFAULT_KEYMAP}
[36] Fix | Delete
fi
[37] Fix | Delete
[38] Fix | Delete
[ -n "${KEYMAP}" ] || return 1
[39] Fix | Delete
[40] Fix | Delete
[ "${UNICODE}" = 1 ] && utf_switch=-u
[41] Fix | Delete
[42] Fix | Delete
loadkeys -q ${utf_switch} ${KEYMAP} ${EXT_KEYMAPS}
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
set_font() {
[46] Fix | Delete
local dev=$1; local trans=''; local uni=''
[47] Fix | Delete
[48] Fix | Delete
[ -z "${FONT}" ] && FONT=${DEFAULT_FONT}
[49] Fix | Delete
[ -n "${FONT_MAP}" ] && trans="-m ${FONT_MAP}"
[50] Fix | Delete
[ -n "${FONT_UNIMAP}" ] && uni="-u ${FONT_UNIMAP}"
[51] Fix | Delete
[52] Fix | Delete
setfont ${FONT} -C ${dev} ${trans} ${uni}
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
dev_close() {
[56] Fix | Delete
exec 6>&-
[57] Fix | Delete
exec 7>&-
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
dev_open() {
[61] Fix | Delete
local dev=$1
[62] Fix | Delete
[63] Fix | Delete
exec 6<${dev} && \
[64] Fix | Delete
exec 7>>${dev}
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
dev=/dev/${1#/dev/}
[68] Fix | Delete
devname=${dev#/dev/}
[69] Fix | Delete
[70] Fix | Delete
[ -c "${dev}" ] || {
[71] Fix | Delete
echo "Usage: $0 device" >&2
[72] Fix | Delete
exit 1
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
dev_open ${dev}
[76] Fix | Delete
[77] Fix | Delete
for fd in 6 7; do
[78] Fix | Delete
if ! [ -t ${fd} ]; then
[79] Fix | Delete
echo "ERROR: File descriptor not opened: ${fd}" >&2
[80] Fix | Delete
dev_close
[81] Fix | Delete
exit 1
[82] Fix | Delete
fi
[83] Fix | Delete
done
[84] Fix | Delete
[85] Fix | Delete
set_keyboard
[86] Fix | Delete
set_terminal ${dev}
[87] Fix | Delete
set_font ${dev}
[88] Fix | Delete
set_keymap
[89] Fix | Delete
[90] Fix | Delete
dev_close
[91] Fix | Delete
[92] Fix | Delete
[93] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function