- ret = read_config(ptr, retry);
- Print(L"read_config=%r\n", ret);
+ ret = read_config(ptr);
+ VERB_PRT(1,Print(L"read_config=%r\n", ret));
+
+ /* Only try the default config filenames if user did not specify a
+ * config filename on the command line */
+ if (elilo_opt.config[0] == CHAR_NULL) {
+ while ((ret != EFI_SUCCESS) &&
+ (retry < MAX_DEFAULT_CONFIGS) &&
+ (elilo_opt.default_configs[retry].fname[0] != CHAR_NULL)) {
+
+ ptr = elilo_opt.default_configs[retry].fname;
+ ret = read_config(ptr);
+ VERB_PRT(1,Print(L"read_config=%r\n", ret));
+ retry += 1;
+ }
+ }