Skip to contentSkip to conversation

sysconf generation

DISCUSSION Aaron VanDevender 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I noticed a problem with the way the sensors-detect script is generating the /etc/sysconfig/lm_sensors file. Its numbering modules like MODULE_1 MODULE_2 MODULE_3 ..., when /prog/init/lm_sensors.init is expecting the file to start counting at MODULE_0 and go to MODULE_($modules - 1). The result is that the last module isn't loaded and the modprobe is run without any arguments before the first module is loaded.

This patch on sensors-detect ought to do the trick:

3038c3038
< my $i = 1;
---

Quoted 1 line
      my $i = 0;

Please CC any replies to me as I am not on this list.

cya
.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20020829/f7512595/attachment.bin

#1 lore raw
Quoted 10 lines

I noticed a problem with the way the sensors-detect script is generating the /etc/sysconfig/lm_sensors file. Its numbering modules like MODULE_1 MODULE_2 MODULE_3 ..., when /prog/init/lm_sensors.init is expecting the file to start counting at MODULE_0 and go to MODULE_($modules - 1). The result is that the last module isn't loaded and the modprobe is run without any arguments before the first module is loaded.

This patch on sensors-detect ought to do the trick:

This had already been reported and is fixed is the CVS version since August 18th, 2002. Thanks anyway!

Signature · 2 lines
Jean "Khali" Delvare
http://www.ensicaen.ismra.fr/~delvare/