I  did a similar thing, but internationalised it to allow a change in settings.s
to change keyboard country code rather than require
modding rc.custom every time one moved country, viz:

     I  have  edited  rc.custom and settings.s to allow a local default keyboard
setting of UK == 21 to be applied, thus:

     /settings.s:

          .....

          KB=21               <<<< This MUST go BEFORE the #AUTO# Line.

          .....

     1/rc.custom.gz:

          .....

     echo P>P
     export KB      <<< additional line
     sh<<'X'&
     read -p "
     1 be    4 dk    7 fr    10 is   13 la   16 pt   19 sf
     2 cf    5 es    8 gr    11 it   14 no   17 ru   20 sg
     3 de    6 fi    9 hu    12 jp   15 pl   18 se   21 uk

     Select    keyboard,    ENTER    for    default($KB)    (15    seconds):   "
J</dev/tty1>/dev/tty1
     [ "$KB" -a ! "$J" ]&&loadkeys $KB.map <<< additional line
     [ "$J" ]&&loadkeys $J.map
     rm P
     X
     (sleep  15;kill  $!;[  -f  P ]&&loadkeys $KB.map;rm P)2>$NU&   <<< modified
line

          .......


     Ted Rule,
     Flextech Television







Tom Oehser <[EMAIL PROTECTED]> on 12/06/99 16:44:44

To:   Jonas Liljenfeldt <[EMAIL PROTECTED]>
cc:   [EMAIL PROTECTED] (bcc: Ted Rule/160GPS/Flextech/UK)

Subject:  [tomsrtbt] how to make a default keymap





On Mon, 17 May 1999, Jonas Liljenfeldt wrote:

> I'm using it on my laptop, very handy. I am not very clever when it comes to
> scripts so I have a typical "newbie question". How do I change rc.custom so
> that I don't have to type keyboard mode 18 (SE) in the startup procedure?

Change this:
------------------------------------------------------------------------
echo P>P
sh<<'X'&
read -p "
1 be 4 dk 7 fr 10 is     13 la     16 pt      19 sf
2 cf 5 es 8 gr 11 it     14 no     17 ru      20 sg
3 de 6 fi 9 hu 12 jp     15 pl     18 se      21 uk

Select keyboard, ENTER for default (15 seconds): " J</dev/tty1>/dev/tty1
[ "$J" ]&&loadkeys $J.map
rm P
X
(sleep 15;kill $!;rm P)2>$NU&
while [ -f P ];do;done
------------------------------------------------------------------------
Into this:
------------------------------------------------------------------------
loadkeys se.map
------------------------------------------------------------------------

-Tom





*****************************************************************
This E-mail message, (including any attachments), is intended
only for the person or entity to which it is addressed,
and may contain confidential information.

If you are not the intended recipient, any review, retransmission,
disclosure, copying, modification or other use of this E-mail message
or attachments is strictly forbidden.

If you have received this E-mail message in error, please contact the
author and delete the message and any attachments from your computer.

You are also advised that the views and opinions expressed in this E-mail
message and any attachments are the author's own, and may not reflect the
views and opinions of FLEXTECH Television.
*****************************************************************

Reply via email to