version 1.20, 2021/10/21 02:17:27 |
version 1.21, 2021/10/21 02:25:32 |
|
|
# Cleanup from previous runs. |
# Cleanup from previous runs. |
rm -f $_cfile $_cfile.sig |
rm -f $_cfile $_cfile.sig |
|
|
_t=Get/Verify |
_t=Get/Verify |
|
|
! $_unpriv ftp -D "$_t" -Vmo - "$_src/SHA256.sig" >"$_cfile.sig" && |
! $_unpriv ftp -D "$_t" -Vmo - "$_src/SHA256.sig" >"$_cfile.sig" && |
_issue="Cannot fetch SHA256.sig" && fail |
_issue="Cannot fetch SHA256.sig" && fail |
|
|
[ -e "$fw" ] || continue |
[ -e "$fw" ] || continue |
echo ${fw##*/} |
echo ${fw##*/} |
done |
done |
) |
) |
|
|
for _i in $_installed; do |
for _i in $_installed; do |
if [ "$_f" = "$_i.tgz" ]; then |
if [ "$_f" = "$_i.tgz" ]; then |
|
|
esac |
esac |
done < "${PKGDIR}/$_installed/+CONTENTS" |
done < "${PKGDIR}/$_installed/+CONTENTS" |
|
|
# We specifically rm -f here because not removing files/dirs |
# We specifically rm -f here because not removing files/dirs |
# is probably not worth failing over. |
# is probably not worth failing over. |
for _r in "${_remove[@]}" ; do |
for _r in "${_remove[@]}" ; do |
if [ -d "$_r" ]; then |
if [ -d "$_r" ]; then |
# Try hard not to actually remove recursively |
# Try hard not to actually remove recursively |
|
|
done |
done |
fi |
fi |
|
|
# TODO: Should we mark these so real fw_update can -Drepair? |
# TODO: Should we mark these so real fw_update can -Drepair? |
echo "Installing $_f" |
echo "Installing $_f" |
tar -zxphf "$_tmpsrc/$_f" -C "${DESTDIR}/etc" "firmware/*" |
tar -zxphf "$_tmpsrc/$_f" -C "${DESTDIR}/etc" "firmware/*" |
mkdir -p ${PKGDIR}/${_f%.tgz}/ |
mkdir -p ${PKGDIR}/${_f%.tgz}/ |