diff options
Diffstat (limited to 'sys-block/nwutil/files/nwutil-1.4-temp.patch')
-rw-r--r-- | sys-block/nwutil/files/nwutil-1.4-temp.patch | 24 |
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; |