From 7a755b92766ce78f2980e508e892df39a18b09e6 Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Thu, 13 Apr 2006 19:48:56 +0000 Subject: [PATCH] save config param KEYMAP before manipulation --- common/func_validate_configs.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/func_validate_configs.sh b/common/func_validate_configs.sh index e26c4f9..e2ae5b1 100644 --- a/common/func_validate_configs.sh +++ b/common/func_validate_configs.sh @@ -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