summaryrefslogtreecommitdiff
path: root/community/acpitool/linux-3.0.patch
blob: ba454a0c2051e2bc09ded373a6cae05ea1f4248c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -wbBur acpitool-0.5.1/src/acpitool.cpp acpitool-0.5.1.my/src/acpitool.cpp
--- acpitool-0.5.1/src/acpitool.cpp	2009-08-13 23:37:48.000000000 +0400
+++ acpitool-0.5.1.my/src/acpitool.cpp	2011-08-11 21:53:17.000000000 +0400
@@ -205,8 +205,12 @@
 	Kernel_24 = 1;           
 	Kernel_26 = 0;
     }
-        
-    if(strncmp(str,"2.6",3)==0)
+    else if(strncmp(str,"2.6",3)==0)
+    {
+	Kernel_24 = 0;
+	Kernel_26 = 1;
+    }
+    else
     {
 	Kernel_24 = 0;           
 	Kernel_26 = 1;