new tarball, no version change, fixed openbsd cpu flags

This commit is contained in:
inxi-svn 2014-09-20 19:47:50 +00:00
parent 23cbb0455f
commit b50c4a156e

4
inxi
View file

@ -4157,7 +4157,7 @@ get_cpu_flags_bsd()
} }
/^(CPU:|cpu0:)/ { /^(CPU:|cpu0:)/ {
while ( getline && !/memory|real mem/ ) { while ( getline && !/memory|real mem/ ) {
if ( $1 ~ /Features/ || ( bsdVersion == "openbsd" && $0 ~ /^cpu0.*,[a-z][a-z][a-z],[a-z][a-z][a-z],/ ) ) { if ( $1 ~ /Features/ || ( bsdVersion == "openbsd" && $0 ~ /^cpu0.*[[:space:]][a-z][a-z][a-z][[:space:]][a-z][a-z][a-z][[:space:]]/ ) ) {
# clean up odd stuff like <b23> # clean up odd stuff like <b23>
gsub(/<[a-z0-9]+>/,"", $2) gsub(/<[a-z0-9]+>/,"", $2)
# all the flags are contained within < ... > on freebsd at least # all the flags are contained within < ... > on freebsd at least
@ -4172,7 +4172,7 @@ get_cpu_flags_bsd()
}' <<< "$Dmesg_Boot_Data" ) }' <<< "$Dmesg_Boot_Data" )
elif [[ -n $Sysctl_a_Data ]];then elif [[ -n $Sysctl_a_Data ]];then
if [[ $BSD_VERSION == 'openbsd' ]];then if [[ $BSD_VERSION == 'openbsd' ]];then
gawk_fs='=' gawk_fs=':'
fi fi
cpu_flags=$( gawk -F "$gawk_fs" ' cpu_flags=$( gawk -F "$gawk_fs" '
BEGIN { BEGIN {