summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/vendor.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 3fdb7225..19228cf1 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -46,10 +46,8 @@ vendor_download()
detect_firmware()
{
- _cfg_exists="n"
- for _chk_file in "${boarddir}/config/"*; do
- [ -f "${_chk_file}" ] && _cfg_exists="y" && break
- done
+ _cfg_exists="y"
+ check_defconfig "$boarddir" && _cfg_exists="n"
[ "${_cfg_exists}" = "n" ] && return 1
set -- "${boarddir}/config/"*