ea8904665d
- Add SIGNATURE_UPDATE.txt to state the steps to update signature-*.asc - Update the comment of strip_signature.sh OBS-URL: https://build.opensuse.org/request/show/443762 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/shim?expand=0&rev=123
14 lines
230 B
Bash
14 lines
230 B
Bash
#!/bin/bash
|
|
# strip the signature from a PE binary
|
|
set -e
|
|
|
|
infile="$1"
|
|
if [ -z "$infile" -o ! -e "$infile" ]; then
|
|
echo "USAGE: $0 file.efi"
|
|
exit 1
|
|
fi
|
|
|
|
outfile="${infile%.efi}-unsigned.efi"
|
|
|
|
pesign -r -i "$infile" -o "$outfile"
|