From 7dc228709a8f37551c503587f68aa6ab19754266 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 3 Aug 2005 05:32:01 +0000 Subject: Add support for /dev/temp. Package-Manager: portage-2.0.51.22-r2 --- sys-block/nwutil/files/nwutil-1.4-temp.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sys-block/nwutil/files/nwutil-1.4-temp.patch (limited to 'sys-block/nwutil/files') 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; -- cgit v1.2.3-65-gdbad