[distribution-discuss] keyboard layout selection
Bernd Schemmer
Bernd.Schemmer at gmx.de
Tue Apr 29 14:21:21 PDT 2008
Hi,
the code to select the keyboard layout is okay for booting from CDROM
but not optimal for booting from USB sticks or harddisks. In the later
case it's possible to edit the bootenv.rc file and preset the keyboard
layout to the prefered layout. Unfortunately the init scripts do not
honour this setting.
Therefor the method live-fs-root should be changed:
Replace the line
kbd -s
with
__KEYBOARD=`eeprom keyboard-layout | cut -f 2 -d "="`
if [ "${__KEYBOARD}"x = "unknown"x ] ; then
kbd -s
else
kbd -s "${__KEYBOARD}"
fi
This code works as before for CDROM boots but uses the eeprom setting
keyboard-layout if it is set to a specific keyboard layout.
regards
Bernd
--
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html
M s temprano que tarde el mundo cambiar .
Fidel Castro
More information about the distribution-discuss
mailing list