Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed kernels on...
[live-boot-grml.git] / 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