Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 7405
Collapse All | Expand All

(-)checkfs (-4 / +7 lines)
Lines 27-36 Link Here
27
	# Start software raid
27
	# Start software raid
28
	if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ]
28
	if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ]
29
	then
29
	then
30
		ebegin "Starting software RAID"
30
		if [ $(grep -c active /proc/mdstat) -lt 1 ]
31
		# still echo stderr for debugging
31
		then
32
		/sbin/raidstart --all >/dev/null
32
			ebegin "Starting software RAID"
33
		eend $? "Failed to start software RAID"
33
			# still echo stderr for debugging
34
			/sbin/raidstart --all >/dev/null
35
			eend $? "Failed to start software RAID"
36
		fi
34
	fi
37
	fi
35
38
36
	if [ -f /fastboot ]
39
	if [ -f /fastboot ]
(-)halt.sh (-3 / +6 lines)
Lines 87-95 Link Here
87
#stop RAID
87
#stop RAID
88
if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ]
88
if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ]
89
then
89
then
90
	ebegin "Stopping software RAID"
90
	if [ $(mount|grep -c "/dev/md") -lt 1 ]
91
	raidstop -a
91
	then
92
	eend $? "Failed to stop software RAID"
92
		ebegin "Stopping software RAID"
93
		raidstop -a
94
		eend $? "Failed to stop software RAID"
95
	fi
93
fi
96
fi
94
97
95
#stop LVM
98
#stop LVM

Return to bug 7405