mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Shorten the header comment of /etc/sysconfig/lm_sensors. We don't really
need a copyright and license notice on a generated, 3-line configuration file, do we? git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5490 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -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 <frodol@dds.nl>
|
||||
#
|
||||
# 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);
|
||||
|
||||
|
Reference in New Issue
Block a user