diff --git a/inxi b/inxi index 3170fc7..0d4d65d 100755 --- a/inxi +++ b/inxi @@ -795,10 +795,12 @@ initialize_data() eval $LOGFS BSD_VERSION=$( uname -s 2>/dev/null | tr '[A-Z]' '[a-z]' ) # note: archbsd says they are a freebsd distro, so assuming it's the same as freebsd - if [[ -z ${BSD_VERSION/*bsd*/} ]];then + if [[ -z ${BSD_VERSION/*bsd*/} || -z ${BSD_VERSION/*darwin*/} ]];then # GNU/kfreebsd will by definition have GNU tools like sed/grep if [[ -z ${BSD_VERSION/*kfreebsd*/} ]];then BSD_TYPE='debian-bsd' # debian gnu bsd + elif [[ -z ${BSD_VERSION/*darwin*/} ]];then + BSD_TYPE='darwin-bsd' # debian gnu bsd else BSD_TYPE='bsd' # all other bsds SED_I="-i ''" @@ -11394,7 +11396,6 @@ print_raid_data() recovery_speed=" ${C1}speed$SEP3${C2} ${a_raid_working[15]}" fi fi - a_raid_data[$raid_counter]="${C1}Recovering$SEP3${C2} $recovery_percent$recovery_progress_bar$recovered_sectors$finish_time$recovery_speed" (( raid_counter++ )) fi