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" |