Changeset 4990 for lm-sensors/branches/lm-sensors-3.0.0/lib/init.c
- Timestamp:
- 10/25/07 11:59:05 (5 years ago)
- Files:
-
- 1 modified
-
lm-sensors/branches/lm-sensors-3.0.0/lib/init.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/init.c
r4989 r4990 21 21 #include <stdlib.h> 22 22 #include <stdio.h> 23 #include <errno.h> 23 24 #include "sensors.h" 24 25 #include "data.h" … … 30 31 #include "init.h" 31 32 32 #define DEFAULT_CONFIG_FILE ETCDIR "/sensors.conf" 33 #define DEFAULT_CONFIG_FILE ETCDIR "/sensors3.conf" 34 #define ALT_CONFIG_FILE ETCDIR "/sensors.conf" 33 35 34 36 int sensors_init(FILE *input) … … 50 52 /* No configuration provided, use default */ 51 53 input = fopen(DEFAULT_CONFIG_FILE, "r"); 54 if (!input && errno == ENOENT) 55 input = fopen(ALT_CONFIG_FILE, "r"); 52 56 if (input) { 53 57 if (sensors_scanner_init(input) ||
