slitaz-boot-scripts rev 75

i18n.sh: use loadkey or busybox/loadkmap with /etc/keymap.conf
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 05 23:08:57 2008 +0200 (2008-05-05)
parents 6d1f52cb4f79
children def856d355bd
files etc/init.d/i18n.sh
line diff
     1.1 --- a/etc/init.d/i18n.sh	Fri May 02 21:31:58 2008 +0200
     1.2 +++ b/etc/init.d/i18n.sh	Mon May 05 23:08:57 2008 +0200
     1.3 @@ -18,8 +18,12 @@
     1.4  #
     1.5  if [ -f "/etc/keymap.conf" ]; then
     1.6  	KEYMAP=`cat /etc/keymap.conf`
     1.7 -	echo "Keymap configuration... "
     1.8 -	loadkeys $KEYMAP
     1.9 +	echo "Keymap configuration: $KEYMAP"
    1.10 +	if [ -x /bin/loadkeys ]; then
    1.11 +		loadkeys $KEYMAP
    1.12 +	else
    1.13 +		loadkmap < /usr/share/kmap/$KEYMAP.kmap
    1.14 +	fi
    1.15  else 
    1.16  	tazkeymap
    1.17  fi