2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +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:
Mark D. Studebaker 2002-08-29 02:20:01 +00:00
parent b4bb628fff
commit 59dc28b817

View File

@ -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