This commit is contained in:
inxi-svn 2013-02-27 21:16:20 +00:00
parent 85c4073d80
commit c4be977f5c

4
inxi
View file

@ -9487,11 +9487,11 @@ print_raid_data()
fi
# NOTE: for bsd zfs, states are: ONLINE,DEGRADED,OFFLINE (at least)
if [[ -n $( grep -Ei '(F|DEGRADED)' <<< $component ) ]];then
component=$( sed -e 's/(F)//' -e 's/F//' -e 's/DEGRADED//i' <<< $component )
component=$( sed -e 's/(F)//' -e 's/F//' -e 's/DEGRADED//' <<< $component )
failed="$failed $component"
component=''
elif [[ -n $( grep -Ei '(S|OFFLINE)' <<< $component ) ]];then
component=$( sed -e 's/(S)//' -e 's/S//' -e 's/OFFLINE//i' <<< $component )
component=$( sed -e 's/(S)//' -e 's/S//' -e 's/OFFLINE//' <<< $component )
spare="$spare $component"
component=''
else