From fe0f27510291462f4729428a9286af0b77446083 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 9 Apr 2007 13:04:59 +0200 Subject: [PATCH] grml-lang: execute kdb_mode --- debian/changelog | 7 +++++++ usr_bin/grml-lang | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 08cbd3c..e628759 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-scripts (0.9.37) unstable; urgency=low + + * grml-lang: execute 'kbd_mode -u' when running in utf8 mode + on plain console + + -- Michael Prokop Mon, 9 Apr 2007 13:04:16 +0200 + grml-scripts (0.9.36) unstable; urgency=low * grml-setservices: execute update-rc.d commands only for present diff --git a/usr_bin/grml-lang b/usr_bin/grml-lang index 2ded458..69926ea 100755 --- a/usr_bin/grml-lang +++ b/usr_bin/grml-lang @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fri Apr 21 02:02:54 CEST 2006 [mika] +# Latest change: Mon Apr 09 13:04:40 CEST 2007 [mika] ################################################################################ usage(){ @@ -32,7 +32,6 @@ if [ -z "$DISPLAY" ] ;then echo -e "\nDone." elif [ "$1" = "us" ] ; then echo 'Loading keymap us...' - # sudo loadkeys /etc/console/boottime.kmap.gz sudo loadkeys i386/qwerty/us-latin1.kmap.gz echo -e "\nDone." else echo "No valid parameter given. @@ -40,6 +39,8 @@ if [ -z "$DISPLAY" ] ;then Notice: Use loadkeys on console and setxkbmap when running X for modifying keyboard layout. Adjust \$LANG and \$LC_ALL for setting locales." ; exit 1 fi + # switch to unicode mode on console + case $LANG in *UTF-8) kbd_mode -u ; ;; esac else if [ $# = 0 ] ; then echo "Usage: $0 " -- 2.1.4