[Pkg-acpi-devel] Bug#635537: acpitool does not handle the latest kernel release 3.0.0.
hugo vanwoerkom
huugske at gmail.com
Thu Jul 28 17:36:48 UTC 2011
This is better:
==================================================================================
--- acpitool-orig//acpitool-0.5.1/src/acpitool.cpp 2009-08-13
14:37:48.000000000 -0500
+++ acpitool-new//acpitool-0.5.1/src/acpitool.cpp 2011-07-28
08:40:37.000000000 -0500
@@ -200,14 +200,15 @@
file_in.getline(str, 9);
file_in.close();
- if(strncmp(str,"2.4",3)==0)
- {
+ if(strncmp(str,"2.4",3)==0) {
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;
}
================================================================================
Hugo Vanwoerkom
More information about the Pkg-acpi-devel
mailing list