Commit 2bb28bb6 authored by Dylan Araps's avatar Dylan Araps

cpu: Use uname -m for portability

parent f41607c3
......@@ -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")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment