diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-03-26 19:27:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-03-26 19:27:12 +0000 |
commit | 6160bfd705f7b5128e07c0ebb4f6b1ecd8b987d9 (patch) | |
tree | 9375a0b54a86b7ce1358a4df8f0d66897f6e8074 /distrib/amd64 | |
parent | f4410d3dd5d1c0d59e26fab23aeaf2b281f4dd05 (diff) |
Simplify/shrink kbd(8) logic and verbiage. Always ask for best kbd(8)
table.
ok deraadt@
Diffstat (limited to 'distrib/amd64')
-rw-r--r-- | distrib/amd64/common/install.md | 51 |
1 files changed, 8 insertions, 43 deletions
diff --git a/distrib/amd64/common/install.md b/distrib/amd64/common/install.md index aa966b4b014..2e405505961 100644 --- a/distrib/amd64/common/install.md +++ b/distrib/amd64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.3 2005/03/26 01:40:20 krw Exp $ +# $OpenBSD: install.md,v 1.4 2005/03/26 19:27:11 krw Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -46,49 +46,14 @@ MDSERIAL="com com tty0" ARCH=ARCH md_set_term() { - local _tables - - ask_yn "Do you wish to select a keyboard encoding table?" - [[ $resp == n ]] && return - - while :; do - ask "Select your keyboard type: (P)C-AT/XT, (U)SB or 'done'" P - case $resp in - P*|p*) _tables="be br de dk es fr it jp lt no pt ru sf sg sv ua uk us" - ;; - U*|u*) _tables="br de dk es fr it jp no sf sg sv uk us" - ;; - done) ;; - *) echo "'$resp' is not a valid keyboard type." - resp= - continue - ;; - esac - break; - done - - [ -z "$_tables" ] && return - - while :; do - cat << __EOT -The available keyboard encoding tables are: - - ${_tables} + local _tables="be br de dk es fr it jp no sf sg sv uk us" -__EOT - ask "Table name? (or 'done')" us - case $resp in - done) ;; - *) if kbd $resp ; then - echo $resp > /tmp/kbdtype - else - echo "'${resp}' is not a valid table name." - continue - fi - ;; - esac - break; - done + ask_yn "Are you using a USB keyboard?" + [[ $resp == n ]] && _tables="$_tables pt ru ua" + _tables=$(bsort $_tables) + + ask_which "kbd(8) table" "best matches your keyboard" "$_tables" us + [[ $resp != @(done|us) ]] && kbd $resp && echo $resp >/tmp/kbdtype } md_installboot() { |