From: Guido Günther Date: Sat, 27 Jan 2018 12:11:36 +0000 (+0100) Subject: Determine architecture via 'uname -m' X-Git-Tag: v1.19~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=52870e8a264653d7921e8a4edff56d4b050614d8;p=virt-what.git Determine architecture via 'uname -m' 'uname -p' only gives unknown on x86_64, i386, arm6l (rpi) and aarch64 (scaleways). --- diff --git a/virt-what.in b/virt-what.in index 29b7b0d..2011ff4 100644 --- a/virt-what.in +++ b/virt-what.in @@ -102,9 +102,9 @@ cpuid=$(virt-what-cpuid-helper) dmi=$(LANG=C dmidecode 2>&1) # Architecture. -# Note for the purpose of testing, we only call uname with -p option. +# Note for the purpose of testing, we only call uname with -m option. -arch=$(uname -p | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') +arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') # Check for VMware. # cpuid check added by Chetan Loke.