save config param KEYMAP before manipulation

This commit is contained in:
George Boudreau 2006-04-13 19:48:56 +00:00
parent 760c2f10f5
commit 7a755b9276

View file

@ -98,7 +98,8 @@ inline_doc
local PARAM_LIST=
local config_param
local validation_str
local save_param
write_error_and_die() {
echo -e "\n${DD_BORDER}"
echo -e "`eval echo ${ERROR_MSG_pt1}`" >&2
@ -236,9 +237,11 @@ inline_doc
write_error_and_die
echo
;;
KEYMAP) [[ ! "${!config_param}" = "none" ]] &&
KEYMAP) save_param=${KEYMAP}
[[ ! "${!config_param}" = "none" ]] &&
KEYMAP="/usr/share/kbd/keymaps/${KEYMAP}" &&
validate_file -z -e -s
KEYMAP=${save_param}
;;
esac
done