From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pp8H5-000234-1W for garchives@archives.gentoo.org; Mon, 14 Feb 2011 23:56:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56E1BE09E6; Mon, 14 Feb 2011 23:56:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 25BE2E09E6 for ; Mon, 14 Feb 2011 23:56:02 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 717CE1B416E for ; Mon, 14 Feb 2011 23:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A3B838006A for ; Mon, 14 Feb 2011 23:56:00 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/consolefont.in init.d/termencoding.in X-VCS-Directories: init.d/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: bae0a693a9271b3ed0f723fdafc22efe5f07b70e Date: Mon, 14 Feb 2011 23:56:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 670027dafddb63fc43b5c4fe11c45802 commit: bae0a693a9271b3ed0f723fdafc22efe5f07b70e Author: Sebastian Thorarensen blinkenshell org> AuthorDate: Mon Feb 14 23:51:15 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Feb 14 23:54:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Dbae0a693 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 gentoo.org> --- init.d/consolefont.in | 6 ------ init.d/termencoding.in | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/init.d/consolefont.in b/init.d/consolefont.in index d3acd75..75c2fd1 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 =20 return $retval diff --git a/init.d/termencoding.in b/init.d/termencoding.in index 734d220..fea27ee 100644 --- a/init.d/termencoding.in +++ b/init.d/termencoding.in @@ -31,5 +31,16 @@ start() printf "\033%s" "$termencoding" >$ttydev$n n=3D$(($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 }