mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
branch one, I think now zfs raid will work
This commit is contained in:
parent
01006c359a
commit
a5cc3d4706
4
inxi
4
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### Version: 2.1.11
|
#### Version: 2.1.11
|
||||||
#### Date: 2014-03-26
|
#### Date: 2014-03-26
|
||||||
#### Patch Number: 09-b1
|
#### Patch Number: 10-b1
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -7732,12 +7732,12 @@ get_raid_component_data_bsd()
|
||||||
}
|
}
|
||||||
$1 ~ /^'$device'$/ {
|
$1 ~ /^'$device'$/ {
|
||||||
while ( getline && !/^$/ ) {
|
while ( getline && !/^$/ ) {
|
||||||
sub( /ONLINE/, "", $2 )
|
|
||||||
# raid level is the second item in the output
|
# raid level is the second item in the output
|
||||||
if ( $1 != "" && raidLevel == "" ) {
|
if ( $1 != "" && raidLevel == "" ) {
|
||||||
raidLevel="zfs " $1
|
raidLevel="zfs " $1
|
||||||
getline
|
getline
|
||||||
}
|
}
|
||||||
|
sub( /ONLINE/, "", $2 )
|
||||||
components=components separator $1 separator $2
|
components=components separator $1 separator $2
|
||||||
separator=" "
|
separator=" "
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue