Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Kbdconfig fixes, again :p< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 25 2008,14:20 QUOTE

I stumbled upon two logical mistakes in the kbdconfig script. The first is wrong placement of the existing keymap (if booted with the lang=xx option), it's supposed to be like the other keymaps, xx-long-name short-name, but since it's the other way around, pressing enter on it might load the wrong keymap (for example you booted to fr-latin1, this would replace it with fr).
The other bug shows the "keymaps" directory in the list of keymaps when it obviously shouldn't.

Patch for both:
Quote
--- kbdconfig   2008-05-25 13:41:04.000000000 +0300
+++ kbdconfig2  2008-05-25 13:45:09.000000000 +0300
@@ -32,12 +32,12 @@
*)  TITLE="Please choose keyboard"; ;;
esac

-for i in `find /usr/share/keymaps -name \*map\*`; do
+for i in `find /usr/share/keymaps/* -name \*map\*`; do
       FILE="${i%%.*map*}"; NAME="${FILE##*/}"
       [ "$NAME" != "$KEYTABLE" ] && KEYMAPS="$KEYMAPS $NAME ${NAME%%-*}"
done

-DEFAULT="${KEYTABLE%%-*} $KEYTABLE"
+DEFAULT="$KEYTABLE ${KEYTABLE%%-*}"

dialog --clear --title "$TITLE" --menu "Default: ${KEYTABLE:-none}" 22 70 15 $DEFAULT $KEYMAPS 2>"$TMP"



--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 25 2008,18:52 QUOTE

Thanks! Will patch.
Back to top
Profile PM WEB 
1 replies since May 25 2008,14:20 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Kbdconfig fixes

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code