]> git.pld-linux.org Git - packages/enlightenment.git/commitdiff
- fox temperature module on macs
authorsparky <sparky@pld-linux.org>
Mon, 24 Apr 2006 13:21:40 +0000 (13:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    enlightenmentDR17-module_temp_mac.patch -> 1.1

enlightenmentDR17-module_temp_mac.patch [new file with mode: 0644]

diff --git a/enlightenmentDR17-module_temp_mac.patch b/enlightenmentDR17-module_temp_mac.patch
new file mode 100644 (file)
index 0000000..ac5aa1a
--- /dev/null
@@ -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;
This page took 0.066386 seconds and 4 git commands to generate.