Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/keymap
| Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | "->-"*) # Test keymap | ||||
| back_from_testing=1 | back_from_testing=1 | ||||
| continue ;; | continue ;; | ||||
| esac | esac | ||||
| # Turn the user's choice into a number | # Turn the user's choice into a number | ||||
| n=$( eval f_dialog_menutag2index_with_help \ | n=$( eval f_dialog_menutag2index_with_help \ | ||||
| \"\$menu_choice\" $menu_list ) | \"\$menu_choice\" $menu_list ) | ||||
| # Turn that number ithe name of the keymap struct | # Turn that number into the name of the keymap struct | ||||
| k=$( set -- $KEYMAPS; eval echo \"\${$(( $n - 2))}\" ) | k=$( set -- $KEYMAPS; eval echo \"\${$(( $n - 2))}\" ) | ||||
| # Get actual keymap setting while we update $keymap and $KEYMAPFILE | # Get actual keymap setting while we update $keymap and $KEYMAPFILE | ||||
| keymap_$k get keym keymap | keymap_$k get keym keymap | ||||
| echo "keymap=\"$keymap\"" > "$KEYMAPFILE" | echo "keymap=\"$keymap\"" > "$KEYMAPFILE" | ||||
| done | done | ||||
| f_quietly f_keymap_kbdcontrol "$keymap" | f_quietly f_keymap_kbdcontrol "$keymap" | ||||
| exit $SUCCESS | exit $SUCCESS | ||||
| ################################################################################ | ################################################################################ | ||||
| # END | # END | ||||
| ################################################################################ | ################################################################################ | ||||