| version 1.55, 2021/12/08 03:37:44 |
version 1.56, 2021/12/08 03:44:37 |
|
|
| } |
} |
| |
|
| firmware_filename() { |
firmware_filename() { |
| sed -n "s/.*(\($1-firmware-.*\.tgz\)).*/\1/p" "$CFILE" | sed '$!d' |
local _f |
| |
_f="$( sed -n "s/.*(\($1-firmware-.*\.tgz\)).*/\1/p" "$CFILE" | sed '$!d' )" |
| |
! [ "$_f" ] && echo "Unable to find firmware for $1" >&2 && return 1 |
| |
echo "$_f" |
| } |
} |
| |
|
| installed_firmware() { |
installed_firmware() { |
|
|
| echo "Signature check of SHA256.sig failed" >&2 && exit 1 |
echo "Signature check of SHA256.sig failed" >&2 && exit 1 |
| |
|
| for d in "${devices[@]}"; do |
for d in "${devices[@]}"; do |
| f=$( firmware_filename "$d" ) |
f=$( firmware_filename "$d" || true ) |
| [ "$f" ] || continue |
[ "$f" ] || continue |
| set -A installed -- $( installed_firmware "$d" ) |
set -A installed -- $( installed_firmware "$d" ) |
| |
|