mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
iwlwifi: script to extract firmware details
When having to find a firmware image with a lower version number we must only break the inner but not also the outer loop so we keep looking at any possibly remaining firmware details. While here also try to find a version from max..1 and not from 1..max. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
d686ce931c
commit
52f8e99e7e
1 changed files with 2 additions and 2 deletions
|
|
@ -155,11 +155,11 @@ list_fw()
|
|||
vn=$(echo ${fx} | awk '{ gsub(".ucode$", ""); gsub("^.*-", ""); print; }')
|
||||
#echo "BN ${bn} VN ${vn}"
|
||||
# Single digits are not zero-padded so just ${i} will be fine.
|
||||
for i in `jot ${vn} 1`; do
|
||||
for i in `jot ${vn} ${vn} 1`; do
|
||||
xn="${bn}-${i}.ucode"
|
||||
if test -e ${LFWDIR}/${xn}; then
|
||||
lx="${lx} ${xn}"
|
||||
break 2;
|
||||
break
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue