From 59dc28b817cae6dd2c44eecebae9fb98ba08670b Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Thu, 29 Aug 2002 02:20:01 +0000 Subject: [PATCH] fix in stop() from Sebastian Mika 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 --- prog/init/lm_sensors.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/init/lm_sensors.init b/prog/init/lm_sensors.init index d546b7b2..564dd853 100755 --- a/prog/init/lm_sensors.init +++ b/prog/init/lm_sensors.init @@ -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