fa8f2b475d
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/shim?expand=0&rev=73
14 lines
239 B
Bash
14 lines
239 B
Bash
#!/bin/bash
|
|
# attach ascii armored signature to 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"
|