aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 90f14384..4635c64e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -251,7 +251,7 @@ if [ -c /dev/mapper/control ]; then
modprobe dm-mirror >/dev/null 2>&1
for x in $(dmraid -ay -t --ignorelocking 2>/dev/null | grep -v "No RAID disks" | awk -F ':' '{ print $1 }') ; do
dmname=$(resolve_dm_name $x)
- if [ -z "$dmname" ]; then
+ if [ -n "$dmname" ]; then
/sbin/dmraid -ay --ignorelocking "$dmname"
fi
done