[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: two keymaps for two kernels



Where you have /etc/console/boottime.kmap.gz, you could instead create
2 files in /etc/console boottime-<kernel-version>.kmap.gz. Then in
/etc/init.d/keymap.sh make the followin changes:

Add a line near the top, where you see other variable definitions, to
define:
  VERSION=`uname -r`

then below, change this line

  loadkeys ${CONFDIR}/${CONFFILEROOT}.${EXT}.gz

to this:

  loadkeys ${CONFDIR}/${CONFFILEROOT}-${VERSION}.${EXT}.gz

I haven't tried it myself, just cooked it up as I wrote this. My
system is sid, and I don't have potato config files to reference atm.
Hope that works for you.

Vineet

P.S. please set your mailer to wrap at 72 characters. Had I not
reformatted your quoted message below, it would have appeared as one
very long line that can be difficult for some to read. It's not my
responsibility (nor probably even my right) to alter your message
while I quote it.

* Saqib Shaikh (ss@saqibshaikh.com) [010703 12:20]:
> hi all,
> 
> i use some special speech software which is patched into the kernel
> and therefore also changes the default keymap. i have also got a
> non-talking kernel. in short, i want to have two keymaps, one to
> load when the standard kernel is booted and one to use when the
> other kernel is loaded. does anyone know how to do this?
> 
> thanks, saqib
> 

Attachment: pgppugfcuI6Q2.pgp
Description: PGP signature


Reply to: