void-packages/srcpkgs/sbsigntool/files/kernel.d/sbsigntool.post-remove

14 lines
227 B
Bash

#!/bin/sh
#
# Kernel hook for sbsigntool.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ -f "boot/vmlinuz-$VERSION.unsigned" ]; then
rm -f "boot/vmlinuz-${VERSION}.unsigned"
fi