mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 21:38:17 +00:00
fix in stop() from
Sebastian Mika <Sebastian.Mika@first.fraunhofer.de> stop: At least on my debian system the line "modules=`grep \^MODULE_ $CONFIG | wc -l`" evaluates to " 4" (a space before 4). Regards, Sebastian Mika git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1511 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
b4bb628fff
commit
59dc28b817
@ -67,7 +67,7 @@ stop() {
|
||||
test -r "$CONFIG" && . "$CONFIG"
|
||||
|
||||
modules=`grep \^MODULE_ $CONFIG | wc -l`
|
||||
i=$modules
|
||||
i=`expr $modules`
|
||||
while [ $i -ge 0 ] ; do
|
||||
module=`eval echo '$'MODULE_$i`
|
||||
/sbin/modprobe -r $module &>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user