summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-03 05:32:01 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-03 05:32:01 +0000
commit873d74c2319c57fe4d76279ba458c0f2242e8d43 (patch)
tree7b35a59a8ee986758b7c9fa8c911ac13e64505ad /sys-block/nwutil/files
parentMoved to gtk-engines-qtpixmap and geramik (diff)
downloadgentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.tar.gz
gentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.tar.bz2
gentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.zip
Add support for /dev/temp.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-block/nwutil/files')
-rw-r--r--sys-block/nwutil/files/nwutil-1.4-temp.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-block/nwutil/files/nwutil-1.4-temp.patch b/sys-block/nwutil/files/nwutil-1.4-temp.patch
new file mode 100644
index 000000000000..3a786fdfa64e
--- /dev/null
+++ b/sys-block/nwutil/files/nwutil-1.4-temp.patch
@@ -0,0 +1,24 @@
+Newer kernels name the device 'temp' so try both.
+
+--- fan_ctrl.c
++++ fan_ctrl.c
+@@ -73,6 +73,8 @@ main (int argc, char **argv)
+
+ fd = open ("/dev/temperature", O_RDWR);
+ if (fd < 0)
++ fd = open ("/dev/temp", O_RDWR);
++ if (fd < 0)
+ {
+ printf ("Error %d opening /dev/temperature\n", fd);
+ return EXIT_FAILURE;
+--- set_therm.c
++++ set_therm.c
+@@ -66,6 +66,8 @@ main (int argc, char **argv)
+
+ fd = open ("/dev/temperature", O_RDWR);
+ if (fd < 0)
++ fd = open ("/dev/temp", O_RDWR);
++ if (fd < 0)
+ {
+ printf ("Error %d opening /dev/temperature\n", fd);
+ return EXIT_FAILURE;