[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Defaulting to i686 for the Debian i386 architecture



* Philip Hands <phil@hands.com>, 2015-10-06, 09:35:
 sed -ne '/^flags\t/{s/\b\(fpu\|tsc\|cx8\|cmov\)\b/%/g;s/[^%]*//g;s/%%%%/i686 SUPPORTED/p}' /proc/cpuinfo

Or a more readable version:

[ $(lscpu | grep ^Flags: | grep -owE 'fpu|tsc|cx8|cmov' | wc -l) = 4 ] && echo i686 SUPPORTED

--
Jakub Wilk


Reply to: