Package: edac-utils
Version: 0.10-1
Followup-For: Bug #456644

The problem is with the check for verbosity - the logical expression it
is part of is is the last statement executed by the script and so the
return code from that becomes the return code of the init script.  If
the check for verbosity fails (as it will by default) then this will
mean that the exit value for the entire script will be an error.

The most obvious change to fix the check appears to be removing it
entirely - the init script does not check for verbosity anywhere else
and has already produced some output by the time it does this check so
it would be an error to not terminate anyway:

--- /etc/init.d/edac.orig       2008-01-02 11:09:48.000000000 +0000
+++ /etc/init.d/edac    2008-01-02 11:11:39.000000000 +0000
@@ -48,7 +48,7 @@
   $EDAC --register-labels 1>/dev/null 2>&1
   rc=$?
   case $rc in
-    0) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+    0) log_end_msg 0 ;;
     5) log_failure_msg ": No EDAC support for this hardware"; log_end_msg 1 ;;
     *) log_failure_msg ": Unknown return code $rc. Please file a bug report"; 
log_end_msg 1;;
    esac



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to