initramfs-tools: guard too kernel postrm script

Same story as postinst script.

Signed-off-by: maximilian attems <max@stro.at>
This commit is contained in:
maximilian attems 2012-06-06 15:46:47 +02:00
parent c52544d9fd
commit 44b93e0016

View File

@ -3,6 +3,8 @@
version="$1"
bootopt=""
[ -x /usr/sbin/update-initramfs ] || exit 0
# passing the kernel version is required
if [ -z "${version}" ]; then
echo >&2 "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number"