Set unicode mode immediately at boot without consolefont

X-Gentoo-Bug: 354793
X-Gentoo-Bug-URL: http://bugs.gentoo.org/354793
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Sebastian Thorarensen 2011-02-14 18:51:15 -05:00 committed by Anthony G. Basile
parent 35d38c3561
commit bae0a693a9
2 changed files with 11 additions and 6 deletions

View File

@ -61,12 +61,6 @@ start()
done done
cp "$font" "$RC_LIBEXECDIR"/console cp "$font" "$RC_LIBEXECDIR"/console
echo "${font##*/}" >"$RC_LIBEXECDIR"/console/font echo "${font##*/}" >"$RC_LIBEXECDIR"/console/font
if yesno ${unicode:-${UNICODE}}; then
echo "" > "$RC_LIBEXECDIR"/console/unicode
else
rm -f "$RC_LIBEXECDIR"/console/unicode
fi
fi fi
return $retval return $retval

View File

@ -31,5 +31,16 @@ start()
printf "\033%s" "$termencoding" >$ttydev$n printf "\033%s" "$termencoding" >$ttydev$n
n=$(($n + 1)) n=$(($n + 1))
done done
# Save the encoding for use immediately at boot
if [ -w "$RC_LIBEXECDIR" ]; then
mkdir -p "$RC_LIBEXECDIR"/console
if yesno ${unicode:-${UNICODE}}; then
echo "" > "$RC_LIBEXECDIR"/console/unicode
else
rm -f "$RC_LIBEXECDIR"/console/unicode
fi
fi
eend 0 eend 0
} }