Summary: | Load all possible modules | ||||||
---|---|---|---|---|---|---|---|
Product: | Sisyphus | Reporter: | ed <ed> | ||||
Component: | lm_sensors | Assignee: | Nobody's working on this, feel free to take it <nobody> | ||||
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus | ||||
Severity: | enhancement | ||||||
Priority: | P1 | ||||||
Version: | unstable | ||||||
Hardware: | all | ||||||
OS: | Linux | ||||||
Attachments: |
|
Description
ed
2004-04-13 18:32:40 MSD
Created attachment 382 [details]
patch
Comment on attachment 382 [details]
patch
--- /etc/init.d/lm_sensors.orig 2004-04-13 06:05:22 +0400
+++ /etc/init.d/lm_sensors 2004-04-13 06:15:44 +0400
@@ -82,9 +82,13 @@
while [ $RETVAL -eq 0 ]; do
module="`eval echo '$'MODULE_$i`"
[ -n "$module" ] || break
- echo -n "$module "
- /sbin/modprobe $module &>/dev/null
- RETVAL=$?
+ if modinfo -n $module 2>&1 | grep -qv 'no module by that name
found' ; then
+ echo -n "$module "
+ /sbin/modprobe $module &>/dev/null
+ RETVAL=$?
+ else
+ echo -n "$module(not found) "
+ fi
i=$(($i + 1))
done
Fixed in lm_sensors-2.8.6-alt2. |