aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thorarensen <indigo176@blinkenshell.org>2011-02-14 18:51:15 -0500
committerAnthony G. Basile <basile@opensource.dyc.edu>2011-02-14 18:54:35 -0500
commitbae0a693a9271b3ed0f723fdafc22efe5f07b70e (patch)
treec2e5151cac86953958f8327c83f8a6a8d0b0f377
parent35d38c3561fa5e16c6d2e00e033e48dc200ae42c (diff)
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>
-rw-r--r--init.d/consolefont.in6
-rw-r--r--init.d/termencoding.in11
2 files changed, 11 insertions, 6 deletions
diff --git a/init.d/consolefont.in b/init.d/consolefont.in
index d3acd753..75c2fd1b 100644
--- a/init.d/consolefont.in
+++ b/init.d/consolefont.in
@@ -61,12 +61,6 @@ start()
done
cp "$font" "$RC_LIBEXECDIR"/console
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
return $retval
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
}