Thank you Mark and everyone who else participated. And thank you Mark for
hinting about return value -- apparently I've forgotten about 'no effect'
command at the end whenever I was tuning up from upstream init script.

I am about to upload fixed version. Instead of blurbing I will simply
give you relevant part of the  diff ;-)

-  log_daemon_msg "Registering DIMM labels for $DESC" "${SERVICE} "
+  [ "$VERBOSE" != no ] && log_daemon_msg "Registering DIMM labels for $DESC" 
"${SERVICE} "
   $EDAC --register-labels 1>/dev/null 2>&1
   rc=$?
   case $rc in
     0) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+    2) log_failure_msg ": Failed with error code 2. Usually since dmidecode 
needs to be ran by root"; log_end_msg 1 ;;
     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
@@ -87,3 +88,5 @@ case "$1" in
     exit 3
     ;;
 esac
+
+:

Happy new year
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



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

Reply via email to