=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.27 retrieving revision 1.29 diff -u -r1.27 -r1.29 --- openbsd/fw_update/fw_install.sh 2021/11/16 02:40:45 1.27 +++ openbsd/fw_update/fw_install.sh 2021/11/18 01:44:30 1.29 @@ -80,6 +80,7 @@ VNAME=$(sysctl -n kern.osrelease) VERSION="${VNAME%.*}${VNAME#*.}" FWDIR="$VNAME" +MODE=${MODE:-install} # TODO: We need the firmware for the system we just installed # not the one we booted from. For example: @@ -239,7 +240,7 @@ # TODO: Should we mark these so real fw_update can -Drepair? ftp -D "Install" -Vmo- "file:$_tmpsrc/$_f" | tar -s ",^\+,${_pkgdir}/${_f%.tgz}/+," \ - -s ",^firmware,mnt/etc/firmware," \ + -s ",^firmware,${DESTDIR}/etc/firmware," \ -C / -zxphf - "+*" "firmware/*" ed -s "${_pkgdir}/${_f%.tgz}/+CONTENTS" <