summaryrefslogtreecommitdiff
path: root/script/vendor/download
diff options
context:
space:
mode:
Diffstat (limited to 'script/vendor/download')
-rwxr-xr-xscript/vendor/download6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vendor/download b/script/vendor/download
index b83ffb48..25434318 100755
--- a/script/vendor/download
+++ b/script/vendor/download
@@ -42,6 +42,12 @@ main()
detect_firmware()
{
+ _cfg_exists="n"
+ for _chk_file in "${boarddir}/config/"*; do
+ [ -f "${_chk_file}" ] && _cfg_exists="y" && break
+ done
+ [ "${_cfg_exists}" = "n" ] && return 1
+
set -- "${boarddir}/config/"*
. "${1}" 2>/dev/null