SOURCES: enlightenmentDR17-module_temp_mac.patch (NEW) - fox tempe...
sparky
sparky at pld-linux.org
Mon Apr 24 15:21:45 CEST 2006
Author: sparky Date: Mon Apr 24 13:21:45 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fox temperature module on macs
---- Files affected:
SOURCES:
enlightenmentDR17-module_temp_mac.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/enlightenmentDR17-module_temp_mac.patch
diff -u /dev/null SOURCES/enlightenmentDR17-module_temp_mac.patch:1.1
--- /dev/null Mon Apr 24 15:21:45 2006
+++ SOURCES/enlightenmentDR17-module_temp_mac.patch Mon Apr 24 15:21:40 2006
@@ -0,0 +1,26 @@
+--- enlightenment-0.16.999.026/src/modules/temperature/e_mod_config.c.orig 2006-04-24 12:47:29.000000000 +0000
++++ enlightenment-0.16.999.026/src/modules/temperature/e_mod_config.c 2006-04-24 12:49:59.000000000 +0000
+@@ -281,6 +281,10 @@
+
+ f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
+ if (f) fclose(f);
++ else {
++ f = fopen("/sys/devices/temperatures/sensor1_temperature", "rb");
++ if (f) fclose(f);
++ }
+
+ if (!f)
+ {
+--- enlightenment-0.16.999.026/src/modules/temperature/e_mod_main.c.orig 2006-04-24 12:47:26.000000000 +0000
++++ enlightenment-0.16.999.026/src/modules/temperature/e_mod_main.c 2006-04-24 12:58:18.000000000 +0000
+@@ -291,6 +291,10 @@
+ if (therms) ecore_list_destroy(therms);
+
+ f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
++ if (!f) {
++ f = fopen("/sys/devices/temperatures/sensor1_temperature", "rb");
++ }
++
+ if (f)
+ {
+ fgets(buf, sizeof(buf), f); buf[sizeof(buf) - 1] = 0;
================================================================
More information about the pld-cvs-commit
mailing list