From 28d1765d4511cb8d075cafe046c872d216281e3e Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 22 Jun 2008 00:54:09 +0100 Subject: [PATCH 1/1] Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on powerpc. Signed-off-by: Chris Lamb --- debian/postinst | 2 +- debian/postrm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/postinst b/debian/postinst index b2d37bb..b94b3bd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,6 +1,6 @@ #!/bin/sh -case "$(ls -l /boot/vmlinuz-* | wc -l)" in +case "$(ls -l /boot/vmlinu* | wc -l)" in 1) # We only have one kernel installed, so we can use "-u" # which will use dpkg-trigger inside update-initramfs diff --git a/debian/postrm b/debian/postrm index b2d37bb..b94b3bd 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,6 +1,6 @@ #!/bin/sh -case "$(ls -l /boot/vmlinuz-* | wc -l)" in +case "$(ls -l /boot/vmlinu* | wc -l)" in 1) # We only have one kernel installed, so we can use "-u" # which will use dpkg-trigger inside update-initramfs -- 2.1.4