Changeset 323

Show
Ignore:
Timestamp:
03/18/99 16:12:01 (14 years ago)
Author:
frodo
Message:

Finished renaming of detect.pl

* Either Phil had not done a 'cvs update', or I forgot a 'cvs commit'; anyway,

the last changes to detect.pl have been ported to sensors-detect.

* Added a rule to the Makefile fragment to install it in $(SBINDIR).
* Added SBINDIR to the main Makefile.
* Deleted detect.pl

Location:
lm-sensors/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r222 r323  
    7171 
    7272# 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. 
    7476# Note that not all programs in this package are really installed; 
    7577# some are just examples. You can always install them by hand, of 
    7678# course. 
    7779BINDIR := $(PREFIX)/bin 
     80SBINDIR := $(PREFIX)/sbin 
    7881 
    7982# You should not need to change this. It is the basic directory into which 
  • lm-sensors/trunk/prog/detect/Module.mk

    r207 r323  
    2525PROGDETECTTARGETS := $(MODULE_DIR)/i2cdetect 
    2626PROGDETECTSOURCES := $(MODULE_DIR)/i2cdetect.c 
     27PROGDETECTSBININSTALL := $(MODULE_DIR)/sensors-detect 
    2728 
    2829# Include all dependency files. We use '.rd' to indicate this will create 
     
    3334all :: all-prog-detect 
    3435 
     36install-prog-detect: all-prog-detect 
     37        mkdir -p $(SBINDIR) 
     38        $(INSTALL) -o root -g root -m 755 $(PROGDETECTSBININSTALL) $(SBINDIR) 
     39install :: install-prog-detect 
     40 
    3541clean-prog-detect: 
    3642        $(RM) $(PROGDETECTSOURCES:.c=.rd) $(PROGDETECTSOURCES:.c=.ro) \ 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r303 r323  
    159159       i2c_addrs => [0x00..0x7f],  
    160160       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, @_ }, 
    164161     } , 
    165162     { 
     
    11501147                (($reg1 & 0x80) == 0x80 and $reg2 == 0x5c); 
    11511148  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; 
    11541151  return if $chip == 1 and  $reg1 != 0x30; 
    11551152  return if $chip == 2 and  $reg1 != 0x40;