Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 16030 Details for
Bug 25004
sys-apps/lm-sensors -- new version 2.8.0 available
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/lm-sensors-2.8.0-sensors-detect-gentoo.diff
lm-sensors-2.8.0-sensors-detect-gentoo.diff (text/plain), 5.05 KB, created by
Tim Yamin (RETIRED)
on 2003-08-13 04:54:10 UTC
(
hide
)
Description:
files/lm-sensors-2.8.0-sensors-detect-gentoo.diff
Filename:
MIME Type:
Creator:
Tim Yamin (RETIRED)
Created:
2003-08-13 04:54:10 UTC
Size:
5.05 KB
patch
obsolete
># plasmaroo Mon Aug 11, 10:45PM BST >--- prog/detect/sensors-detect~ 2003-07-08 14:07:59.000000000 +0100 >+++ prog/detect/sensors-detect 2003-08-11 21:25:01.000000000 +0100 >@@ -25,6 +25,14 @@ > # each be put in a separate file, using modules and packages. That is beyond > # me. > >+# Changelog >+# 02/Mar/2003, Rudo Thomas <thomr9am@ss1000.ms.mff.cuni.cz> >+# * a few small changes in config file output to reflect Gentoo Linux layout >+# - /etc/sysconfig -> /etc/conf.d >+# - /etc/rc.d/init.d -> /etc/init.d >+# - added a warning to the generated config file >+# - small change when asking about writing the new config file >+ > require 5.004; > > use strict; >@@ -3718,38 +3726,48 @@ > my $use_isa = not <STDIN> =~ /\s*[Ss]/; > > my ($modprobes,$configfile) = generate_modprobes $use_isa; >- print "\nTo make the sensors modules behave correctly, add these lines to either\n", >- "/etc/modules.conf or /etc/conf.modules:\n\n"; >+ >+ >+ print "\nIf you want to load the modules at startup, generate a config", >+ " file\n", >+ "below and make sure lm_sensors get started ", >+ "(eg. rc-update add lm_sensors default).\n"; >+ print "\nTo make the sensor modules behave correctly, add these lines to\n", >+ "/etc/modules.conf:\n\n"; > print "#----cut here----\n"; > print $configfile; >- print "#----cut here----\n"; >- print "\nTo load everything that is needed, add this to some /etc/rc* ", >- "file:\n\n"; >- print "#----cut here----\n"; >- print $modprobes; >- print "# sleep 2 # optional\n", >- "/usr/local/bin/sensors -s # recommended\n"; >- print "#----cut here----\n"; >+ print "#----end cut here----\n"; >+ > print "\nWARNING! If you have some things built into your kernel, the list above\n", > "will contain too many modules. Skip the appropriate ones! You really should\n", > "try these commands right now to make sure everything is working properly.\n", > "Monitoring programs won't work until it's done.\n"; >- >- my $have_sysconfig = -d '/etc/sysconfig'; >- print "\nDo you want to generate /etc/sysconfig/lm_sensors? (". >- ($have_sysconfig?"YES/no":"yes/NO")."): "; >- if ($> != 0) { >- print "\nAs you are not root, we shall skip this step.\n"; >- } else { >- if (($have_sysconfig and not <STDIN> =~ /^\s*[Nn]/) or <STDIN> =~ /^\s*[Yy]/) { >- unless ($have_sysconfig) { >- mkdir '/etc/sysconfig', 0777 >- or die "Sorry, can't create /etc/sysconfig ($!)?!?"; >- } >- open(SYSCONFIG, ">/etc/sysconfig/lm_sensors") >- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)?!?"; >- print SYSCONFIG <<'EOT'; >-# /etc/sysconfig/sensors - Defines modules loaded by /etc/rc.d/init.d/lm_sensors >+ print "To load everything that is needed, execute the commands above..."; >+ >+ print "\n\n#----cut here----\n"; >+ print $modprobes; >+ print "# sleep 2 # optional\n", >+ "/usr/local/bin/sensors -s # recommended\n"; >+ print "#----end cut here----\n"; >+ >+ my $have_config = -f '/etc/conf.d/lm_sensors'; >+ print "\nDo you want to ".($have_config?"overwrite":"generate"). >+ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", >+ " (".($have_config?"yes/NO":"YES/no")."/s): "; >+ my $reply = <STDIN>; >+ >+ if (($have_config and $reply =~ /^\s*[Yy]/) or >+ (not $have_config and not $reply =~ /^\s*[Nn]/) or >+ $reply =~ /^\s*[Ss]/) { >+ my $filename = "/etc/conf.d/lm_sensors"; >+ if ($reply =~ /^\s*[Ss]/) { >+ print "Specify the file to store the configuration to: "; >+ $filename = <STDIN>; >+ } >+ open(SYSCONFIG, ">".$filename) >+ or die "Sorry, can't create $filename ($!)."; >+ print SYSCONFIG <<'EOT'; >+# /etc/conf.d/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 >@@ -3766,17 +3784,20 @@ > # along with this program; if not, write to the Free Software > # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > # >-# > # See also the lm_sensors homepage at: > # http://www2.lm-sensors.nu/~lm78/index.html > # >-# This file is used by /etc/rc.d/init.d/lm_sensors and defines the modules to >-# be loaded/unloaded. This file is sourced into /etc/rc.d/init.d/lm_sensors. >+# 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. > # > # 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. > # >+# Please note that the numbers in MODULE_X must start at 0 and increase in >+# steps of 1. Any number that is missing will make the init script skip the >+# rest of the modules. >+# > # List the modules that are to be loaded for your system > # > EOT >@@ -3792,9 +3813,7 @@ > } > print SYSCONFIG $sysconfig; > close(SYSCONFIG); >- print "Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors\n"; >- print "for initialization at boot time.\n"; >- } >+ print "Done.\n"; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25004
:
15933
|
15934
|
15935
|
15937
|
15969
|
15970
|
15997
|
15998
| 16030 |
16031
|
16032
|
16040
|
16041