diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-03 05:32:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-03 05:32:01 +0000 |
commit | 7dc228709a8f37551c503587f68aa6ab19754266 (patch) | |
tree | 9e010633abfa41d661c56c7b8c0b990e916bf021 /sys-block/nwutil/files | |
parent | Moved to gtk-engines-qtpixmap and geramik (diff) | |
download | historical-7dc228709a8f37551c503587f68aa6ab19754266.tar.gz historical-7dc228709a8f37551c503587f68aa6ab19754266.tar.bz2 historical-7dc228709a8f37551c503587f68aa6ab19754266.zip |
Add support for /dev/temp.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-block/nwutil/files')
-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; |