mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +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:
@@ -67,7 +67,7 @@ stop() {
|
|||||||
test -r "$CONFIG" && . "$CONFIG"
|
test -r "$CONFIG" && . "$CONFIG"
|
||||||
|
|
||||||
modules=`grep \^MODULE_ $CONFIG | wc -l`
|
modules=`grep \^MODULE_ $CONFIG | wc -l`
|
||||||
i=$modules
|
i=`expr $modules`
|
||||||
while [ $i -ge 0 ] ; do
|
while [ $i -ge 0 ] ; do
|
||||||
module=`eval echo '$'MODULE_$i`
|
module=`eval echo '$'MODULE_$i`
|
||||||
/sbin/modprobe -r $module &>/dev/null
|
/sbin/modprobe -r $module &>/dev/null
|
||||||
|
Reference in New Issue
Block a user