From: Chris Lamb Date: Sat, 21 Jun 2008 23:54:09 +0000 (+0100) Subject: Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on... X-Git-Tag: debian/1.136.1-1~9 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=28d1765d4511cb8d075cafe046c872d216281e3e;p=live-boot-grml.git Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on powerpc. Signed-off-by: Chris Lamb --- 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