From 1d2375f115cabb543f6a2cf250c6331aff249ada Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 22 Jun 2008 00:54:09 +0100 Subject: [PATCH] Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on powerpc. --- 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