r2959 - trunk/utils/initrd-tools

Bastian Blank waldi@costa.debian.org
Sun, 10 Apr 2005 14:06:45 +0000


Author: waldi
Date: 2005-04-10 14:06:44 +0000 (Sun, 10 Apr 2005)
New Revision: 2959

Modified:
   trunk/utils/initrd-tools/mkinitrd
Log:
mkinitrd: Check sym53c8xx against version to be installed.


Modified: trunk/utils/initrd-tools/mkinitrd
===================================================================
--- trunk/utils/initrd-tools/mkinitrd	2005-04-10 14:04:46 UTC (rev 2958)
+++ trunk/utils/initrd-tools/mkinitrd	2005-04-10 14:06:44 UTC (rev 2959)
@@ -590,7 +590,7 @@
 		esac
 
 		# XXX Workaround: 2.4 and 2.6 disagrees about the name of the new sym53c8xx module
-		if [ "$oldkernel" ]; then
+		if dpkg --compare-versions $VERSION lt 2.5; then
 			sym53c8xx="sym53c8xx_2"
 		else
 			sym53c8xx="sym53c8xx"