mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
adjusted the missing mdstat file method to be right.
This commit is contained in:
parent
f744c6ffbe
commit
9837f9cbec
10
inxi
10
inxi
|
@ -7998,9 +7998,14 @@ print_raid_data()
|
|||
if [[ $B_SHOW_BASIC_RAID == 'true' && $basic_raid != '' ]];then
|
||||
a_raid_data[0]="${C1}Device$basic_raid_plural${SEP3}${C2} $basic_raid"
|
||||
fi
|
||||
|
||||
|
||||
if [[ $B_MDSTAT_FILE != 'true' ]];then
|
||||
a_raid_data[0]="${C1}No /proc/mdstat file detected!${C2} "
|
||||
else
|
||||
if [[ ${a_raid_data[0]} == '' ]];then
|
||||
if [[ $B_MDSTAT_FILE == 'true' ]];then
|
||||
a_raid_data[0]="${C1}Device${SEP3}${C2} No RAID devices detected"
|
||||
fi
|
||||
# now let's add on the system line and the unused device line. Only print on -xx
|
||||
if [[ $kernel_support$read_ahead$raid_event != '' ]];then
|
||||
array_count=${#a_raid_data[@]}
|
||||
|
@ -8012,9 +8017,6 @@ print_raid_data()
|
|||
a_raid_data[array_count_unused]="$unused_devices"
|
||||
loop_limit=2
|
||||
fi
|
||||
else
|
||||
a_raid_data[0]="${C1}No /proc/mdstat file detected!${C2} "
|
||||
fi
|
||||
fi
|
||||
|
||||
# print out all lines, line starter on first line
|
||||
|
|
Loading…
Reference in a new issue