summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c3b690)
raw | patch | inline | side by side (parent: 4c3b690)
author | Lubos Stanek <kolektor@atlas.cz> | |
Mon, 11 Dec 2006 22:34:30 +0000 (23:34 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 13 Dec 2006 07:05:12 +0000 (08:05 +0100) |
Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
src/sensors.c | patch | blob | history |
diff --git a/src/sensors.c b/src/sensors.c
index 93f93fc3fff75c06e7598c2360aaf2d5269505be..6ba8154c2dc0a14bfabdba7710bd7fadfb0282bc 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
static int sensor_extended_naming = 0;
#if SENSORS_HAVE_READ
+#ifndef SENSORS_CONF_PATH
+# define SENSORS_CONF_PATH "/etc/sensors.conf"
+#endif
+static const char *conffile = SENSORS_CONF_PATH;
+/* SENSORS_CONF_PATH */
+
typedef struct featurelist
{
const sensors_chip_name *chip;
assert (last_feature == NULL);
#endif
- if ((fh = fopen ("/etc/sensors.conf", "r")) == NULL)
+ if ((fh = fopen (conffile, "r")) == NULL)
return;
if (sensors_init (fh))