From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] also recognise /etc/modprobe.conf (Fedora patch)
Date: Sat, 07 Jul 2007 18:01:48 +0000 [thread overview]
Message-ID: <468FD50C.9010601@hhs.nl> (raw)
In-Reply-To: <20070707195630.3cfded29@hyperion.delvare>
Jean Delvare wrote:
>> Author: jwrdegoede
>> Date: Fri Jul 6 21:13:50 2007
>> New Revision: 4566
>> Changeset: http://lm-sensors.org/changeset/4566
>>
>> Modified:
>> lm-sensors/trunk/prog/detect/sensors-detect
>>
>> Log:
>> also recognise /etc/modprobe.conf (Fedora patch)
>
>> --- /lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect (revision 4562)
>> +++ /lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect (revision 4567)
>> @@ -2168,6 +2168,8 @@
>> $modules_conf = '/etc/modules.conf';
>> } elsif (-f '/etc/conf.modules') {
>> $modules_conf = '/etc/conf.modules';
>> + } elsif (-f '/etc/modprobe.conf') {
>> + $modules_conf = '/etc/modprobe.conf';
>> } else { # default
>> $modules_conf = '/etc/modules.conf';
>> }
>
> Very good. We should have done this a long time ago, I think that all
> the distributions out there were patching sensors-detect that way.
>
> I would go even further:
>
> * We can probably drop support for /etc/conf.modules entirely?
>
> * If both /etc/modprobe.conf and /etc/modules.conf are present, it is
> likely that /etc/modprobe.conf should be used, so I we should test it
> first.
>
> * If neither file is found, the default could depend on the kernel
> version. Defaulting to /etc/modules.conf for a 2.6 kernel-based system
> is rather unlikely to be correct.
>
I fully agree, with all of the above. My perl-foo is not all that good, so the
last bullet / point (default depending on kernel version) is probably best
handled by someone else. I can implement the other 2 points if you want, but
those are so trivial that when someone does 3 he can easily do them too,
eitherway let me know.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2007-07-07 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-07 17:56 [lm-sensors] also recognise /etc/modprobe.conf (Fedora patch) Jean Delvare
2007-07-07 18:01 ` Hans de Goede [this message]
2007-07-07 19:00 ` Jean Delvare
2007-07-07 19:01 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=468FD50C.9010601@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.