Changeset 323
- Timestamp:
- 03/18/99 16:12:01 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 3 modified
-
Makefile (modified) (1 diff)
-
prog/detect/Module.mk (modified) (2 diffs)
-
prog/detect/sensors-detect (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/Makefile
r222 r323 71 71 72 72 # You should not need to change this. It is the directory into which the 73 # executable program files will be installed. 73 # executable program files will be installed. BINDIR for programs that are 74 # also useful for normal users, SBINDIR for programs that can only be run 75 # by the superuser. 74 76 # Note that not all programs in this package are really installed; 75 77 # some are just examples. You can always install them by hand, of 76 78 # course. 77 79 BINDIR := $(PREFIX)/bin 80 SBINDIR := $(PREFIX)/sbin 78 81 79 82 # You should not need to change this. It is the basic directory into which -
lm-sensors/trunk/prog/detect/Module.mk
r207 r323 25 25 PROGDETECTTARGETS := $(MODULE_DIR)/i2cdetect 26 26 PROGDETECTSOURCES := $(MODULE_DIR)/i2cdetect.c 27 PROGDETECTSBININSTALL := $(MODULE_DIR)/sensors-detect 27 28 28 29 # Include all dependency files. We use '.rd' to indicate this will create … … 33 34 all :: all-prog-detect 34 35 36 install-prog-detect: all-prog-detect 37 mkdir -p $(SBINDIR) 38 $(INSTALL) -o root -g root -m 755 $(PROGDETECTSBININSTALL) $(SBINDIR) 39 install :: install-prog-detect 40 35 41 clean-prog-detect: 36 42 $(RM) $(PROGDETECTSOURCES:.c=.rd) $(PROGDETECTSOURCES:.c=.ro) \ -
lm-sensors/trunk/prog/detect/sensors-detect
r303 r323 159 159 i2c_addrs => [0x00..0x7f], 160 160 i2c_detect => sub { w83781d_detect 1, @_}, 161 isa_addrs => [0x290],162 isa_detect => sub { w83781d_isa_detect 1, @_ },163 alias_detect => sub { w83781d_alias_detect 1, @_ },164 161 } , 165 162 { … … 1150 1147 (($reg1 & 0x80) == 0x80 and $reg2 == 0x5c); 1151 1148 return unless ($reg1 & 0x07) == 0x00; 1152 $reg1 = i2c_smbus_read_byte_data($file,0x58) ;1153 return if $chip == 0 and ($reg1 & 0xfe)!= 0x10;1149 $reg1 = i2c_smbus_read_byte_data($file,0x58) &0xfe; 1150 return if $chip == 0 and $reg1 != 0x10; 1154 1151 return if $chip == 1 and $reg1 != 0x30; 1155 1152 return if $chip == 2 and $reg1 != 0x40;
