2013-09-09 05:29:33 +02:00
|
|
|
#!/bin/bash
|
2016-12-05 09:35:58 +01:00
|
|
|
# strip the signature from a PE binary
|
2013-09-09 05:29:33 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
infile="$1"
|
|
|
|
if [ -z "$infile" -o ! -e "$infile" ]; then
|
|
|
|
echo "USAGE: $0 file.efi"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
outfile="${infile%.efi}-unsigned.efi"
|
|
|
|
|
2014-04-29 09:15:01 +02:00
|
|
|
pesign -r -i "$infile" -o "$outfile"
|