=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.53 retrieving revision 1.55 diff -u -r1.53 -r1.55 --- openbsd/fw_update/fw_install.sh 2021/12/07 04:23:00 1.53 +++ openbsd/fw_update/fw_install.sh 2021/12/08 03:37:44 1.55 @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_install.sh,v 1.53 2021/12/07 04:23:00 afresh1 Exp $ +# $OpenBSD: fw_install.sh,v 1.55 2021/12/08 03:37:44 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -48,6 +48,16 @@ echo "$_dir" } +realpath () { + if [ -x /usr/bin/realpath ]; then + /usr/bin/realpath "$1" + elif [ "$1" = "${1%/*}" ]; then + echo "${PWD}/$1" + else + echo "$( cd "${1%/*}" && pwd )/${1##*/}" + fi +} + fetch() { local _file=$1 _user=_file _exit @@ -181,7 +191,7 @@ chmod go+x . fetch "$CFILE" -! signify -Vep "$FWPUB_KEY" -x "$CFILE" -m "$CFILE" && +! signify -qVep "$FWPUB_KEY" -x "$CFILE" -m "$CFILE" && echo "Signature check of SHA256.sig failed" >&2 && exit 1 for d in "${devices[@]}"; do