mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
85c4073d80
commit
c4be977f5c
4
inxi
4
inxi
|
@ -9487,11 +9487,11 @@ print_raid_data()
|
||||||
fi
|
fi
|
||||||
# NOTE: for bsd zfs, states are: ONLINE,DEGRADED,OFFLINE (at least)
|
# NOTE: for bsd zfs, states are: ONLINE,DEGRADED,OFFLINE (at least)
|
||||||
if [[ -n $( grep -Ei '(F|DEGRADED)' <<< $component ) ]];then
|
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"
|
failed="$failed $component"
|
||||||
component=''
|
component=''
|
||||||
elif [[ -n $( grep -Ei '(S|OFFLINE)' <<< $component ) ]];then
|
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"
|
spare="$spare $component"
|
||||||
component=''
|
component=''
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue