summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-10-06 14:22:38 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-10-06 14:22:38 +0000
commit1370be3878bc693de4eff2ddc8ca7c6b36ac85ea (patch)
tree2a743e0f5ce9013f5f10613d6f0619c9159da7df
parent1b1d84970aeb66200a907417b3a575737ae64db2 (diff)
downloadFreeBSD-src-1370be3878bc693de4eff2ddc8ca7c6b36ac85ea.zip
FreeBSD-src-1370be3878bc693de4eff2ddc8ca7c6b36ac85ea.tar.gz
Ask if you want to set the keymap before invoking kdbmap to prevent
confusion. PR: bin/160913 MFC after: 3 days
-rwxr-xr-xusr.sbin/bsdinstall/scripts/keymap2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/scripts/keymap b/usr.sbin/bsdinstall/scripts/keymap
index 5c7d12f..97ae833 100755
--- a/usr.sbin/bsdinstall/scripts/keymap
+++ b/usr.sbin/bsdinstall/scripts/keymap
@@ -28,6 +28,8 @@
kbdcontrol -d >/dev/null 2>&1
if [ $? -eq 0 ]; then
+ dialog --backtitle "FreeBSD Installer" --title "Keymap Selection" \
+ --yesno "Would you like to set a non-default key mapping for your keyboard?" 0 0 || exit 0
exec 3>&1
kbdmap 2>&1 1>&3 | grep 'keymap=' > $BSDINSTALL_TMPETC/rc.conf.keymap
fi
OpenPOWER on IntegriCloud