void-packages/srcpkgs/dracut/files/kernel-hook-postrm
2012-05-29 14:30:26 +02:00

13 lines
236 B
Bash

#!/bin/sh
#
# Kernel post-remove hook for dracut.
#
# 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 $?