#!/bin/bash
# mkinitcpio can also run outside a package transaction, including from recovery.
set -euo pipefail
[ "${STARCHASER_SIGNING_MODULES:-}" != 1 ] || exit 0
exec /usr/bin/python3 /usr/local/lib/starchaser/secure_boot.py refresh
