From bae0a693a9271b3ed0f723fdafc22efe5f07b70e Mon Sep 17 00:00:00 2001 From: Sebastian Thorarensen Date: Mon, 14 Feb 2011 18:51:15 -0500 Subject: 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 --- init.d/termencoding.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'init.d/termencoding.in') diff --git a/init.d/termencoding.in b/init.d/termencoding.in index 734d2206..fea27ee8 100644 --- a/init.d/termencoding.in +++ b/init.d/termencoding.in @@ -31,5 +31,16 @@ start() printf "\033%s" "$termencoding" >$ttydev$n n=$(($n + 1)) 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 } -- cgit v1.2.3