bsd zfs fix, ignore if linux

This commit is contained in:
inxi-svn 2014-03-26 23:34:28 +00:00
parent c2581789bd
commit 1e5d3a4e41

8
inxi
View file

@ -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=( $(