r2549 - jhalfs/branches/experimental/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Thu Apr 13 12:49:04 PDT 2006


Author: georgeb
Date: 2006-04-13 13:48:56 -0600 (Thu, 13 Apr 2006)
New Revision: 2549

Modified:
   jhalfs/branches/experimental/common/func_validate_configs.sh
Log:
save config param KEYMAP before manipulation

Modified: jhalfs/branches/experimental/common/func_validate_configs.sh
===================================================================
--- jhalfs/branches/experimental/common/func_validate_configs.sh	2006-04-13 18:30:41 UTC (rev 2548)
+++ jhalfs/branches/experimental/common/func_validate_configs.sh	2006-04-13 19:48:56 UTC (rev 2549)
@@ -98,7 +98,8 @@
   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 @@
                   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




More information about the alfs-log mailing list