00-keymaps.sh: simplify keymap handling code

master
Fabio Erculiani 11 years ago
parent a96510560b
commit ef6ec566ef

@ -17,10 +17,10 @@ setup_keymap() {
choose_keymap() {
good_msg "Loading keymaps"
if [ -z "${keymap}" ]; then
splashcmd verbose
cat /lib/keymaps/keymapList
read -t 10 -p '<< Load keymap (Enter for default): ' keymap
case ${keymap} in
1|azerty) keymap=azerty ;;
2|be) keymap=be ;;
@ -66,7 +66,6 @@ choose_keymap() {
42|wangbe) keymap=wangbe ;;
43|sf|ch*) keymap=sf ;;
esac
fi
if [ -e "/lib/keymaps/${keymap}.map" ]; then
good_msg "Loading the ''${keymap}'' keymap"

Loading…
Cancel
Save