From ff6f65618c85425b4cb1b2f7ad16860970fb3bc9 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 16 2021 02:42:35 +0000 Subject: Prepare for a new update Reverting patches so we can apply the latest update and changes can be seen in the spec file and sources. --- diff --git a/CHANGES b/CHANGES index d2e7e8d..6efba0f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,7 @@ lm-sensors CHANGES file ----------------------- -git HEAD - Development version string now contains "+git" instead of "+SVN" - Updated links in documentation to reflect the new home of lm_sensors +SVN HEAD sensors.1: Add reference to sensors-detect Document -j option (json output) sensors: Add support for json output diff --git a/Makefile b/Makefile index 2f5859f..d6f2192 100644 --- a/Makefile +++ b/Makefile @@ -226,7 +226,7 @@ manhtml: cp $(MANPAGES) html cd html ; \ export LOGNAME=sensors ; \ - export HOSTNAME=hwmon.wiki.kernel.org ; \ + export HOSTNAME=www.lm-sensors.org ; \ man2html *.[1-8] ; \ $(RM) *.[1-8] diff --git a/README b/README index 9ce510b..acd3c6e 100644 --- a/README +++ b/README @@ -101,22 +101,14 @@ for such programs. OTHER INFORMATION ----------------- -The lm_sensors website can be found at -https://hwmon.wiki.kernel.org/lm_sensors - -The developers of this package can be reached using -* a mailing list lm-sensors vger kernel org - (you can get information on how to subscribe, unsubscribe, and the list - of archives at http://vger.kernel.org/vger-lists.html#lm-sensors; - you do not need to be subscribed to post to the list) -* GitHub (see https://github.com/lm-sensors/lm-sensors) - -Do not hesitate to contact us if you have questions, suggestions, problems, -want to contribute, or just want to report it works for you. But please try to +The developers of this package can be reached through github. +(see https://github.com/groeck/lm-sensors). Do not hesitate to contact +us if you have questions, suggestions, problems, want to contribute, +or just want to report it works for you. But please try to read the documentation before you ask any questions! It's all under doc/. The latest version of this package can always be found at: -https://github.com/lm-sensors/lm-sensors. +https://github.com/groeck/lm-sensors. LICENSE ------- diff --git a/configs/Asus/P3-PH4C.conf b/configs/Asus/P3-PH4C.conf index 28b3257..00e5dab 100644 --- a/configs/Asus/P3-PH4C.conf +++ b/configs/Asus/P3-PH4C.conf @@ -5,8 +5,7 @@ chip "w83627ehf-*" "w83627dhg-*" label in0 "VCore" label in1 "+12V" label in2 "AVCC" -# ACPI says nothing -# about AVCC, so you might want to uncomment: +# ACPI says nothing about AVCC, so you might want to uncomment: #ignore in2 label in3 "+3.3V" ignore in4 diff --git a/configs/Asus/P5B-E.conf b/configs/Asus/P5B-E.conf index 5aa506c..bf62b6e 100644 --- a/configs/Asus/P5B-E.conf +++ b/configs/Asus/P5B-E.conf @@ -2,7 +2,7 @@ # This is the sensors.conf configuration file for ASUS P5B-E (and maybe it's different versions) -# Everythings based on the guide at https://hwmon.wiki.kernel.org/asusformulahacking. The formulas +# Everythings based on the guide at http://www.lm-sensors.org/wiki/AsusFormulaHacking. The formulas # and ranges are based on the /proc/acpi/dsdt readings of a P5B-E board with a E6600 CPU. chip "w83627dhg-*" diff --git a/configs/Asus/P5N32-E_SLI_Plus.conf b/configs/Asus/P5N32-E_SLI_Plus.conf index 31ced1e..8632e09 100644 --- a/configs/Asus/P5N32-E_SLI_Plus.conf +++ b/configs/Asus/P5N32-E_SLI_Plus.conf @@ -3,7 +3,7 @@ # Linux sensor configuration for an Asus P5N32-E SLI Plus # 5/2007 s.urbanovski#ac-nancy-metz.fr -# (see https://hwmon.wiki.kernel.org/asusformulahacking) +# (see http://www.lm-sensors.org/wiki/AsusFormulaHacking) chip "w83791d-*" diff --git a/configs/Biostar/N68S+.conf b/configs/Biostar/N68S+.conf index ddace3c..be340df 100644 --- a/configs/Biostar/N68S+.conf +++ b/configs/Biostar/N68S+.conf @@ -8,7 +8,7 @@ # This custom configuration file should be copied to /etc/sensors.d/Biostar-N68S+.conf. # # Custom configuration files for some specific mainboards can be found at -# https://github.com/lm-sensors/lm-sensors/tree/master/configs +# http://www.lm-sensors.org/wiki/Configurations # READ THE MAN PAGE DOCUMENTATION OF 'sensors.conf' FOR MORE # COMPLETE INFORMATION. ie: diff --git a/configs/Gigabyte/Z38MX-UD2H-B3.conf b/configs/Gigabyte/Z38MX-UD2H-B3.conf index 5f8d36c..53a2376 100644 --- a/configs/Gigabyte/Z38MX-UD2H-B3.conf +++ b/configs/Gigabyte/Z38MX-UD2H-B3.conf @@ -10,7 +10,7 @@ # from the lm-sensors mailinglist. # Questions, comments or additions? Please share on the lm-sensors mailinglist. -# More info at https://hwmon.wiki.kernel.org/feedbackandsupport +# More info at http://www.lm-sensors.org/wiki/FeedbackAndSupport # Hint: Use sensors -u to list all variables. http://lists.lm-sensors.org/pipermail/lm-sensors/2014-January/040952.html diff --git a/doc/developers/lm_sensors.lsm b/doc/developers/lm_sensors.lsm index cf23955..fd9495a 100644 --- a/doc/developers/lm_sensors.lsm +++ b/doc/developers/lm_sensors.lsm @@ -6,11 +6,13 @@ Description: Hardware health monitoring package for Linux. It consists of a library to allow applications to read sensors data more easily, and of an example program to pretty print this data. Also included is a fan speed control script. - https://hwmon.wiki.kernel.org/lm_sensors + http://www.lm-sensors.org/ Keywords: sensors health hardware-monitoring fan-speed Author: jdelvare@suse.de (Jean Delvare) -Maintained-by: olysonek@redhat.com (Ondřej Lysoněk) -Primary-site: https://github.com - /lm-sensors/lm-sensors/archive/V3-4-0/lm-sensors-3-4-0.tar.gz +Maintained-by: jdelvare@suse.de (Jean Delvare) +Primary-site: http://dl.lm-sensors.org/lm-sensors/releases/ + lm_sensors-3.4.0.tar.bz2 + lm_sensors-3.4.0.tar.bz2.sig +Alternate-site: ftp://ftp.netroedge.com/pub/lm-sensors/ Copying-policy: GPL/LGPL End diff --git a/doc/developers/release_checklist b/doc/developers/release_checklist index a97745e..9ea1ddf 100644 --- a/doc/developers/release_checklist +++ b/doc/developers/release_checklist @@ -10,19 +10,32 @@ Release steps: - Update the CHANGES file (set version and release date) - Update doc/developers/lm_sensors.lsm (Version, Entered-date and Primary-site) - Update doc/libsensors-API.txt and SENSORS_API_VERSION in lib/sensors.h -- grep for LM_VERSION and update values of the constants +- Update version.h - Commit -- Tag the release using git: - git tag V3-x-x - git push origin V3-x-x +- Tag the release using SVN: + svn copy http://lm-sensors.org/svn/lm-sensors/trunk http://lm-sensors.org/svn/lm-sensors/tags/V3-x-x -m "3.x.x release" + +- Move to a temporary directory and get a copy of the freshly tagged code: + svn export http://lm-sensors.org/svn/lm-sensors/tags/V3-x-x lm_sensors-3.x.x +- Tar it up: + tar -jcf lm_sensors-3.x.x.tar.bz2 lm_sensors-3.x.x +- Sign it: + gpg -b lm_sensors-3.x.x.tar.bz2 +- Post it: + scp lm_sensors-3.x.x.tar.bz2{,.sig} devel.atrpms.net:/srv/lm-sensors.org/dl/lm-sensors/releases +- Set correct permissions: + ssh devel.atrpms.net chmod 664 '/srv/lm-sensors.org/dl/lm-sensors/releases/lm_sensors-3.x.x.tar.bz2{,.sig}' After release, remember to: -- Update the Download page on https://hwmon.wiki.kernel.org/download - use - a URL in the following format: - https://github.com/lm-sensors/lm-sensors/archive/V3-x-x/lm-sensors-3-x-x.tar.gz -- Add a news item to https://hwmon.wiki.kernel.org/lm_sensors +- Update the Download page on lm-sensors.org, then add a news item - Announce on the lm-sensors mailing list -- grep for LM_VERSION and add "+git" to the values of the constants -- Commit +- Add "+SVN" to version.h and commit +- Mark the corresponding release milestone as complete using trac-admin + e.g. 'trac-admin /srv/lm-sensors.org/trac milestone completed 3.x.x now' +- Create a new version for the bug tracking system using trac-admin + e.g. 'trac-admin /srv/lm-sensors.org/trac version add 3.x.x now' +- Create a new release milestone using trac-admin + e.g. 'trac-admin /srv/lm-sensors.org/trac milestone add 3.x.x+1 2012-05-10' - Send lm_sensors.lsm to the LSM by mailing it to lsm@qqx.org with the subject `add' (no quotes) +- Copy to mirrors diff --git a/doc/donations b/doc/donations index 4a30c2d..92eea57 100644 --- a/doc/donations +++ b/doc/donations @@ -12,7 +12,7 @@ so hardware which isn't directly related to the development of a hardware monitoring driver, but can be used to build test systems, is welcome too. If you would like to make a donation, please contact us. See -https://hwmon.wiki.kernel.org/authorsandcontributors. Thanks! +http://www.lm-sensors.org/wiki/AuthorsAndContributors. Thanks! Donations are listed in chronological order. Note that the person mentioned diff --git a/doc/git b/doc/git index beeaedd..1c433d2 100644 --- a/doc/git +++ b/doc/git @@ -9,7 +9,7 @@ using git. The git repository is only used for user-space tools. We presume that you have git installed on your machine. To check out a working copy of the code for this project use the following command: -git clone https://github.com/lm-sensors/lm-sensors.git +git clone https://github.com/groeck/lm-sensors.git To update the code, do a git pull from within the lm-sensors directory. Please read the README and INSTALL files of your working copy for how diff --git a/doc/progs b/doc/progs index 0c5464d..e9e997a 100644 --- a/doc/progs +++ b/doc/progs @@ -6,7 +6,7 @@ These programs are generally small utilities used for debugging, and installation of the lm_sensors package, and for demonstrating the use of the drivers and libraries in this package. For more elaborate programs (for example, GUI sensor displays), -see https://github.com/lm-sensors/lm-sensors/ +see https://github.com/groeck/lm-sensors/ http://sensors-applet.sourceforge.net/ https://01.org/powertop/ https://wpitchoune.net/psensor/ diff --git a/etc/sensors.conf.eg b/etc/sensors.conf.eg index 15bc26f..1bd3935 100644 --- a/etc/sensors.conf.eg +++ b/etc/sensors.conf.eg @@ -2003,7 +2003,7 @@ chip "f71805f-*" "f71872f-*" # The configuration below is for the Kv8Pro and AV8 this is the default as this # driver is developed and tested on a Kv8Pro. # Configurations for many other Abit boards can be found at: -# https://github.com/lm-sensors/lm-sensors/tree/master/configs/Abit +# http://www.lm-sensors.org/trac/wiki/Configurations/Abit # If your motherboard isn't listed there and you create a configuration for it # please add it there. @@ -2111,7 +2111,7 @@ chip "dme1737-*" # driver is developed and tested on an Epox EP-9U1697 GLI board. # # Premade configurations for other boards can be found at: -# https://github.com/lm-sensors/lm-sensors/tree/master/configs +# http://www.lm-sensors.org/trac/wiki/Configurations/ # If your motherboard isn't listed there and you create a configuration for it # please add it there. # diff --git a/lib/libsensors.3 b/lib/libsensors.3 index 995c830..bfb67c4 100644 --- a/lib/libsensors.3 +++ b/lib/libsensors.3 @@ -286,4 +286,5 @@ sensors.conf(5) .SH AUTHOR Frodo Looijaard, Jean Delvare and others -https://hwmon.wiki.kernel.org/lm_sensors +http://www.lm-sensors.org/ + diff --git a/lib/sensors.conf.5 b/lib/sensors.conf.5 index 843a211..d869523 100644 --- a/lib/sensors.conf.5 +++ b/lib/sensors.conf.5 @@ -567,4 +567,7 @@ libsensors(3) .SH AUTHOR Frodo Looijaard and the lm_sensors group -https://hwmon.wiki.kernel.org/lm_sensors +http://www.lm-sensors.org/ + + + diff --git a/lm_sensors.service b/lm_sensors.service deleted file mode 100644 index 1a5b225..0000000 --- a/lm_sensors.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Hardware Monitoring Sensors - -[Service] -EnvironmentFile=/etc/sysconfig/lm_sensors -Type=oneshot -RemainAfterExit=yes -ExecStart=-/usr/libexec/lm_sensors/lm_sensors-modprobe-wrapper $BUS_MODULES $HWMON_MODULES -ExecStart=/usr/bin/sensors -s -ExecStop=-/usr/libexec/lm_sensors/lm_sensors-modprobe-r-wrapper $BUS_MODULES $HWMON_MODULES - -[Install] -WantedBy=multi-user.target diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 3bcb547..b1b4b20 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -38,9 +38,12 @@ foreach ('/usr/sbin', '/usr/local/sbin', '/sbin') { ######################### use constant NO_CACHE => 1; -use constant LM_VERSION => '3.4.0+git'; use vars qw(@pci_adapters @chip_ids @ipmi_ifs @non_hwmon_chip_ids - $i2c_addresses_to_scan @i2c_byte_cache %opt); + $i2c_addresses_to_scan $revision @i2c_byte_cache %opt); + +$revision = '$Revision$ ($Date$)'; +$revision =~ s/\$\w+: (.*?) \$/$1/g; +$revision =~ s/ \([^()]*\)//; # This is the list of SMBus or I2C adapters we recognize by their PCI # signature. This is an easy and fast way to determine which SMBus or I2C @@ -2770,7 +2773,7 @@ use vars qw(@cpu_ids); }, { name => "AMD Family 17h thermal sensors", driver => "k10temp", - detect => sub { amd_pci_detect('1463', '15d0', '1493') }, + detect => sub { amd_pci_detect('1463', '15d0') }, }, { name => "AMD Family 15h power sensors", driver => "fam15h_power", @@ -2780,10 +2783,6 @@ use vars qw(@cpu_ids); driver => "fam15h_power", detect => sub { amd_pci_detect('1534') }, }, { - name => "AMD Family 19h thermal sensors", - driver => "k10temp", - detect => sub { amd_pci_detect('1653') }, - }, { name => "Intel digital thermal sensor", driver => "coretemp", detect => \&coretemp_detect, @@ -3104,7 +3103,7 @@ sub initialize_cpu_list }; next; } - if (m/^(vendor_id|cpu family|model|model name|stepping|cpuid level|cpu|revision)\s*:\s*(.+)$/) { + if (m/^(vendor_id|cpu family|model|model name|stepping|cpuid level)\s*:\s*(.+)$/) { my $k = $1; my $v = $2; $v =~ s/\s+/ /g; # Merge multiple spaces @@ -3120,16 +3119,7 @@ sub initialize_cpu_list sub print_cpu_info { my $cpu = $cpu[0]; - if ($kernel_arch =~ m/^ppc(64(le)?)?$/) { - print "# Processor: $cpu->{cpu} ($cpu->{revision})\n"; - } elsif ($kernel_arch =~ m/^arm/) { - print "# Processor: $cpu->{'model name'}\n"; - } elsif (exists $cpu->{'model name'} && exists $cpu->{'cpu family'} - && exists $cpu->{'model'} && exists $cpu->{'stepping'}) { - print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n"; - } else { - print "# Cannot show processor info on $kernel_arch architecture.\n"; - } + print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n"; } # @i2c_adapters is a list of references to hashes, one hash per I2C/SMBus @@ -7295,7 +7285,7 @@ sub generate_modprobes next if not @{$chips_detected{$driver}}; if ($driver eq "to-be-written") { print "Note: there is no driver for ${$chips_detected{$driver}}[0]{chipname} yet.\n". - "Check https://hwmon.wiki.kernel.org/device_support_status for updates.\n\n"; + "Check http://www.lm-sensors.org/wiki/Devices for updates.\n\n"; } elsif (!is_module_builtin($driver)) { open(local *INPUTFILE, "modprobe -l $driver 2>/dev/null |"); local $_; @@ -7311,7 +7301,7 @@ sub generate_modprobes # isn't supported if ((($? >> 8) == 0) && ! $modulefound) { print "Warning: the required module $driver is not currently installed\n". - "on your system. Check https://hwmon.wiki.kernel.org/device_support_status for\n". + "on your system. Check http://www.lm-sensors.org/wiki/Devices for\n". "driver availability.\n\n"; } else { $hwmon_modules{$driver}++ @@ -7476,7 +7466,7 @@ sub main system("/sbin/service", "lm_sensors", "stop"); } - print "# sensors-detect version ".LM_VERSION."\n"; + print "# sensors-detect revision $revision\n"; initialize_dmi_data(); print_dmi_summary(); print_kernel_version(); @@ -7601,7 +7591,7 @@ sub main print "Either your system has no sensors, or they are not supported, or\n". "they are connected to an I2C or SMBus adapter that is not\n". "supported. If you find out what chips are on your board, check\n". - "https://hwmon.wiki.kernel.org/device_support_status for driver status.\n"; + "http://www.lm-sensors.org/wiki/Devices for driver status.\n"; } exit; } diff --git a/prog/dump/isadump.8 b/prog/dump/isadump.8 index 1fa09fd..6bf5ea4 100644 --- a/prog/dump/isadump.8 +++ b/prog/dump/isadump.8 @@ -107,7 +107,7 @@ i2cdump(8), isaset(8) .SH AUTHOR Frodo Looijaard, Mark D. Studebaker, and the lm_sensors group -(https://hwmon.wiki.kernel.org/lm_sensors) +(http://www.lm-sensors.org/) .PP This manual page was originally written by David Z Maze for the Debian GNU/Linux system. It was then reviewed and augmented by the lm_sensors diff --git a/prog/dump/isaset.8 b/prog/dump/isaset.8 index 4051af9..e7bcd5d 100644 --- a/prog/dump/isaset.8 +++ b/prog/dump/isaset.8 @@ -77,7 +77,7 @@ i2cset(8), isadump(8) .SH AUTHOR Mark D. Studebaker, and the lm_sensors group -(https://hwmon.wiki.kernel.org/lm_sensors) +(http://www.lm-sensors.org/) .PP This manual page was shamelessly ripped from the i2cset and isadump manual pages by Jean Delvare. diff --git a/prog/hotplug/unhide_ICH_SMBus b/prog/hotplug/unhide_ICH_SMBus new file mode 100755 index 0000000..13fccc9 --- /dev/null +++ b/prog/hotplug/unhide_ICH_SMBus @@ -0,0 +1,72 @@ +#!/bin/bash +# (C) Rudolf Marek , +# Copyright (C) 2007-2011 Jean Delvare +# +# Thanks Jean Delvare and Oliver Dreier for testing. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 +# as published by the Free Software Foundation +# +# Supports the following Intel ICH chipsets: +# PCI ID +# ICH 8086:2410 +# ICH2 8086:2440 +# ICH2-M 8086:244C +# ICH3 8086:2480 +# ICH3-M 8086:248C +# ICH4 8086:24C0 +# ICH4-M 8086:24CC +# ICH5 8086:24D0 + +pcibus="/sys/bus/pci/slots" +device="00:1f" + +if [ "$UID" -ne 0 ] ; then + echo "You need to be root to run this script!" + exit 252 +fi + +smbus=`lspci -n -s $device.3 | grep -i '0c05: *8086'` +if [ -n "$smbus" ] ; then + echo "ICH SMBus is already there!" + lspci -s $device.3 + exit +fi + +intel=`lspci -n -s $device.0 | grep -i '8086:24[148CD][0C]'` +if [ -z "$intel" ] ; then + echo "Not for your chipset - Intel (ICH) only" + echo "Supported: ICH, ICH2, ICH2-M, ICH3, ICH3-M, ICH4, ICH4-M, ICH5" + exit 255; +fi +modprobe fakephp &> /dev/null + +if [ ! -d "$pcibus" ] ; then + echo "You need the fake PCI hotplug driver! (fakephp.ko, kernel 2.6.5 or later)" + exit 255; +fi + +echo "Enabling SMBus PCI device ..." + +newval=$( printf '%x' $((0x$(setpci -s $device.0 f2.w) & 0xfff7))) +setpci -s $device.0 f2.w=$newval + +echo "Rescanning the bus ..." +echo 1 > $pcibus/0000:$device.0/power 2>/dev/null +if [ ! -d "$pcibus/0000:$device.3" ] ; then + echo "Failed to enable the SMBUS" + exit 253; +fi + +if [ ! -d "/sys/bus/pci/drivers/i801_smbus" ] ; then + echo "Loading i2c-i801 ..." + modprobe i2c-i801 + if [ $? -ne 0 ] ; then + exit 251 + fi +fi + +lspci -s $device.3 +echo "Done!" +echo "Remember: system suspend/resume is no longer safe to use." diff --git a/prog/init/README b/prog/init/README new file mode 100644 index 0000000..7552a67 --- /dev/null +++ b/prog/init/README @@ -0,0 +1,33 @@ +This directory contains files useful for initialization +scripts, especially for RedHat. + +There are two choices, lm_sensors.init and sensord.init. +Use one or the other but not both! + +---------------- + +The script lm_sensors.init is a nice startup/shutdown script. +On RH and other RH-based systems (MDK, notably) use this sort of startup +mechanism (i.e. SVR4-based), as opposed to the everything-in-one-script +(/etc/rc or /etc/rc.local) like the BSD-based systems do. +The lm_sensors.init file should be copied to /etc/rc.d/init.d/lm_sensors. +For more information see the top of the file. +It requires the /etc/sysconfig/lm_sensors file, which identifies +the correct modules. + +The /etc/sysconfig/lm_sensors file is generated by running sensors-detect. +Once the script is done detecting the hardware monitoring devices, it will +list all the required modules in that file, so that they can be loaded +automatically at boot time. + +---------------- + +The script sensord.init also loads the modules, and then +starts the sensord daemon. See the manual page sensord(8) for +more information on the daemon. + +The sensord.init file should be copied to /etc/rc.d/init.d/sensord. +For more information see the top of the file. + +To configure this service one should put appropriate "alias i2c-bus-0 xxx" +and "alias i2c-sensors-chip-0 xxx" in /etc/modules.conf. diff --git a/prog/init/README.initscripts b/prog/init/README.initscripts deleted file mode 100644 index 7552a67..0000000 --- a/prog/init/README.initscripts +++ /dev/null @@ -1,33 +0,0 @@ -This directory contains files useful for initialization -scripts, especially for RedHat. - -There are two choices, lm_sensors.init and sensord.init. -Use one or the other but not both! - ----------------- - -The script lm_sensors.init is a nice startup/shutdown script. -On RH and other RH-based systems (MDK, notably) use this sort of startup -mechanism (i.e. SVR4-based), as opposed to the everything-in-one-script -(/etc/rc or /etc/rc.local) like the BSD-based systems do. -The lm_sensors.init file should be copied to /etc/rc.d/init.d/lm_sensors. -For more information see the top of the file. -It requires the /etc/sysconfig/lm_sensors file, which identifies -the correct modules. - -The /etc/sysconfig/lm_sensors file is generated by running sensors-detect. -Once the script is done detecting the hardware monitoring devices, it will -list all the required modules in that file, so that they can be loaded -automatically at boot time. - ----------------- - -The script sensord.init also loads the modules, and then -starts the sensord daemon. See the manual page sensord(8) for -more information on the daemon. - -The sensord.init file should be copied to /etc/rc.d/init.d/sensord. -For more information see the top of the file. - -To configure this service one should put appropriate "alias i2c-bus-0 xxx" -and "alias i2c-sensors-chip-0 xxx" in /etc/modules.conf. diff --git a/prog/init/fancontrol.init b/prog/init/fancontrol.init old mode 100644 new mode 100755 index 8ab2c92..eabe734 --- a/prog/init/fancontrol.init +++ b/prog/init/fancontrol.init @@ -1,5 +1,7 @@ #!/bin/sh # +# $Id$ +# # fancontrol # # chkconfig: 2345 90 01 diff --git a/prog/init/lm_sensors.init b/prog/init/lm_sensors.init index 2ad58ab..77172d2 100755 --- a/prog/init/lm_sensors.init +++ b/prog/init/lm_sensors.init @@ -20,7 +20,7 @@ # MA 02110-1301 USA. # See also the lm_sensors homepage at: -# https://hwmon.wiki.kernel.org/lm_sensors +# http://www.lm-sensors.org # It uses a config file /etc/sysconfig/lm_sensors that contains the modules # to be loaded/unloaded. That file is sourced into this one. diff --git a/prog/init/sysconfig-lm_sensors-convert b/prog/init/sysconfig-lm_sensors-convert new file mode 100755 index 0000000..0b907a5 --- /dev/null +++ b/prog/init/sysconfig-lm_sensors-convert @@ -0,0 +1,30 @@ +#!/bin/sh + +# Convert an lm_sensors service configuration file from the old convention +# (MODULE_0, MODULE_1...) to the new convention (HWMON_MODULES). +# +# Copyright (C) 2009 Jean Delvare +# +# Released without a license on purpose. This is public domain code, so +# that package maintainers can include it in their post-install script. + +CONFIG=/etc/sysconfig/lm_sensors +test -r "$CONFIG" || exit 0 + +unset ${!MODULE_*} $HWMON_MODULES +. "$CONFIG" +test -n "$HWMON_MODULES" && exit 0 + +for i in ${!MODULE_*} ; do + eval module=\$$i + if test -z "$HWMON_MODULES" ; then + HWMON_MODULES="$module" + else + HWMON_MODULES="$HWMON_MODULES $module" + fi +done +test -z "$HWMON_MODULES" && exit 0 + +echo >> "$CONFIG" +echo "# New configuration format generated by sysconfig-lm_sensors-convert" >> "$CONFIG" +echo "HWMON_MODULES=\"$HWMON_MODULES\"" >> "$CONFIG" diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index d18e0de..c24c891 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -29,7 +29,8 @@ # # -LM_VERSION='3.4.0+git' +REVISION=$(echo '$Revision$' | cut -d' ' -f2) +REVDATE=$(echo '$Date$' | cut -d' ' -f2) PIDFILE="/var/run/fancontrol.pid" if [ -f "$PIDFILE" ] @@ -47,7 +48,7 @@ then exit 1 fi -echo "# pwmconfig version $LM_VERSION" +echo "# pwmconfig revision $REVISION ($REVDATE)" echo 'This program will search your sensors for pulse width modulation (pwm)' echo 'controls, and test each one to see if it controls a fan on' echo 'your motherboard. Note that many motherboards do not have pwm' diff --git a/prog/rrd/sens_day.in b/prog/rrd/sens_day.in index 15412f2..75dc13b 100644 --- a/prog/rrd/sens_day.in +++ b/prog/rrd/sens_day.in @@ -217,7 +217,7 @@ See also:

This page generated with data and scripts from -the lm_sensors project; +the lm_sensors project; the data are stored in a Round Robin Database and the graphs are generated by diff --git a/prog/rrd/sens_week.in b/prog/rrd/sens_week.in index 2b92f65..cce5055 100644 --- a/prog/rrd/sens_week.in +++ b/prog/rrd/sens_week.in @@ -217,7 +217,7 @@ See also:

This page generated with data and scripts from -
the lm_sensors project; +the lm_sensors project; the data are stored in a Round Robin Database and the graphs are generated by diff --git a/prog/rrd/summ_week.in b/prog/rrd/summ_week.in index 7051d5f..713197d 100644 --- a/prog/rrd/summ_week.in +++ b/prog/rrd/summ_week.in @@ -89,7 +89,7 @@ See also:

This page generated with data and scripts from -
the lm_sensors project; +the lm_sensors project; the data are stored in a Round Robin Database and the graphs are generated by diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c index a531362..3cde7f1 100644 --- a/prog/sensord/rrd.c +++ b/prog/sensord/rrd.c @@ -498,8 +498,7 @@ int rrdCGI(void) printf("

\nsensord by " "Merlin Hughes" ", all credit to the " - "" - "lm_sensors " + "lm_sensors " "crew.\n

\n"); printf("\n\n"); diff --git a/prog/sensors/sensors.1 b/prog/sensors/sensors.1 index 7d66e4b..ea0e238 100644 --- a/prog/sensors/sensors.1 +++ b/prog/sensors/sensors.1 @@ -93,6 +93,6 @@ sensors.conf(5), sensors-detect(8). .SH AUTHOR Frodo Looijaard and the lm_sensors group -https://hwmon.wiki.kernel.org/lm_sensors +http://www.lm-sensors.org/ diff --git a/prog/tellerstats/index.shtml b/prog/tellerstats/index.shtml index 1b71376..60c8ca1 100644 --- a/prog/tellerstats/index.shtml +++ b/prog/tellerstats/index.shtml @@ -40,7 +40,7 @@ These plots were generated

This page generated with drivers and the tellerstats scripts from -The lm_sensors drivers. +The lm_sensors drivers.

diff --git a/sensord.service b/sensord.service deleted file mode 100644 index cf4e4b3..0000000 --- a/sensord.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Hardware Monitoring Data Logger -After=lm_sensors.service - -[Service] -EnvironmentFile=-/etc/sysconfig/sensord -Type=forking -PIDFile=/var/run/sensord.pid -ExecStart=/usr/libexec/lm_sensors/sensord-service-wrapper - -[Install] -WantedBy=multi-user.target diff --git a/version.h b/version.h index bbdc04d..ad74e71 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -#define LM_VERSION "3.4.0+git" +#define LM_VERSION "3.4.0+SVN"