diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index d34e29f8..46bb7221 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5062,39 +5062,15 @@ sub main } open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; + print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; print SYSCONFIG <<'EOT'; -# /etc/sysconfig/lm_sensors - Defines modules loaded by -# /etc/init.d/lm_sensors -# Copyright (c) 1998 - 2001 Frodo Looijaard -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301 USA. -# -# -# See also the lm_sensors homepage at: -# http://www.lm-sensors.org/ -# -# This file is used by /etc/init.d/lm_sensors and defines the modules to -# be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors. +# This file is sourced by /etc/init.d/lm_sensors and defines the modules to +# be loaded/unloaded. # # The format of this file is a shell script that simply defines the modules # in order as normal variables with the special names: # MODULE_0, MODULE_1, MODULE_2, etc. -# -# List the modules that are to be loaded for your system -# + EOT my @modules = grep /^modprobe /, split "\n", $modprobes; my $i = 0; @@ -5104,7 +5080,6 @@ EOT $sysconfig .= "MODULE_$i=$_\n"; $i++; } - print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; print SYSCONFIG $sysconfig; close(SYSCONFIG);