SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Thu Apr 24 00:25:31 CEST 2008


Author: glen
Date: Thu Apr 24 00:25:30 2008
New Revision: 9718

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- fix for kernels whose release is "2.6.25_vanilla-1", found by vip`

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Thu Apr 24 00:25:30 2008
@@ -156,7 +156,7 @@
 		IFS='.'
 		set -- $v
 		IFS=$old_IFS
-		ver=$3
+		ver=${3%_*}
 		while [ ${#ver} -lt 3 ] ; do ver="0$ver" ; done
 		ver="$2$ver"
 		while [ ${#ver} -lt 6 ] ; do ver="0$ver" ; done


More information about the pld-cvs-commit mailing list