void-packages/srcpkgs/mkinitcpio/files/kernel-hook-postrm

14 lines
240 B
Plaintext
Raw Normal View History

2015-06-24 23:54:11 +02:00
#!/bin/sh
#
# Kernel post-remove hook for mkinitcpio.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ -f /boot/initramfs-${VERSION}.img ]; then
rm -f /boot/initramfs-${VERSION}.img
fi
exit $?