summarylogtreecommitdiffstats
path: root/sbsign-refind-initcpio-post-hook
blob: cf644ea0e087bfc61ba8afe83b9d30a69495b04a (plain)
1
2
3
4
5
#! /bin/sh
sigs=$(sbverify --list "$1" 2>&1)
if [ "$sigs" = "No signature table present" ]; then
        exec /usr/bin/sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output "$1" "$1"
fi