Author: arekm
Date: Mon Feb 11 11:16:33 2008
New Revision: 9303

Modified:
   rc-scripts/trunk/rc.d/rc.shutdown
Log:
mdadm stop will yell that it can't stop rootfs array. Such errors are 
misleading and useless.

Modified: rc-scripts/trunk/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/trunk/rc.d/rc.shutdown   (original)
+++ rc-scripts/trunk/rc.d/rc.shutdown   Mon Feb 11 11:16:33 2008
@@ -109,7 +109,7 @@
        goraidtab=1
        if [ -x /sbin/mdadm -a -f /etc/mdadm.conf ]; then
                if (grep -qE "^([[:blank:]]|)ARRAY[[:blank:]]" /etc/mdadm.conf 
2>/dev/null); then
-                       run_cmd "Turning off RAID devices" /sbin/mdadm --stop 
--scan
+                       /sbin/mdadm --stop --scan > /dev/null 2>&1
                        rc=$?
                        [ "$rc" -eq 0 ] && goraidtab=0
                fi
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to