acth-converter: ac2th - fix checking kernel version

undefine undefine at pld-linux.org
Sat Dec 23 16:45:01 CET 2006


Author: undefine                     Date: Sat Dec 23 15:45:01 2006 GMT
Module: acth-converter                Tag: HEAD
---- Log message:
- fix checking kernel version

---- Files affected:
acth-converter:
   ac2th (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: acth-converter/ac2th
diff -u acth-converter/ac2th:1.18 acth-converter/ac2th:1.19
--- acth-converter/ac2th:1.18	Sat Dec 23 16:38:44 2006
+++ acth-converter/ac2th	Sat Dec 23 16:44:56 2006
@@ -7,9 +7,10 @@
 #
 
 ARCH=`uname -m`
-KVER=`uname -r |cut -f -2 -d '.'`
+KVERM=`uname -r |cut -f 2 -d '.'`
+KVERL=`uname -r |cut -f 3 -d '.'`
 
-if [ "$KVER" == "2.2" -o "$KVER" == "2.6" ]; then
+if [ "$KVERM" -lt 6 -o "$KVERL" -lt 12 ]; then
 	echo first install 2.6.12 or newer kernel
 	exit 1
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/acth-converter/ac2th?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list