cpu: Use uname -m for portability

This commit is contained in:
Dylan Araps 2018-05-31 15:01:20 +10:00
parent f41607c36c
commit 2bb28bb67b

View file

@ -996,8 +996,14 @@ get_distro() {
[[ -z "$distro" ]] && distro="$os (Unknown)"
# Get OS architecture.
case "$os" in
"Solaris" | "AIX" | "Haiku" | "IRIX" | "FreeMiNT") machine_arch="$(uname -p)" ;;
*) machine_arch="$kernel_machine" ;;
esac
[[ "$os_arch" == "on" ]] && \
distro+=" $HOSTTYPE"
distro+=" $machine_arch"
[[ "${ascii_distro:-auto}" == "auto" ]] && \
ascii_distro="$(trim "$distro")"