Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on...
authorChris Lamb <chris@chris-lamb.co.uk>
Sat, 21 Jun 2008 23:54:09 +0000 (00:54 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:00 +0000 (17:48 +0100)
debian/postinst
debian/postrm

index b2d37bb..b94b3bd 100644 (file)
@@ -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
index b2d37bb..b94b3bd 100644 (file)
@@ -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