mirror of
https://github.com/smxi/inxi.git
synced 2025-02-23 21:42:18 +00:00
bsd zfs fix, ignore if linux
This commit is contained in:
parent
c2581789bd
commit
1e5d3a4e41
8
inxi
8
inxi
|
@ -7618,8 +7618,14 @@ get_raid_data_bsd()
|
|||
if [[ -n $zpool_path ]];then
|
||||
B_BSD_RAID='true'
|
||||
# bsd sed does not support inserting a true \n so use this trick
|
||||
zpool_data="$( $zpool_path list -v | sed $SED_RX 's/^([^[:space:]])/\
|
||||
# some zfs does not have -v
|
||||
if $zpool_path list -v &>/dev/null;then
|
||||
zpool_data="$( $zpool_path list -v 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
||||
\1/' )"
|
||||
else
|
||||
zpool_data="$( $zpool_path list 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
||||
\1/' )"
|
||||
fi
|
||||
# echo "$zpool_data"
|
||||
IFS=$'\n'
|
||||
A_RAID_DATA=( $(
|
||||
|
|
Loading…
Reference in a new issue