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

Bug#823544: dpkg: Won't run at all on i586 Pentium MMX due to illegal instruction



On Sat, 2016-06-18 at 06:19 +0000, Niels Thykier wrote:
> Hi,
> 
> I have committed an initial draft in [r11219].  Review welcome.
> 
> Do we have any trivial way of detecting whether a given i586 CPU will be
> supported?  I am thinking a small shell snippet that an end-user can run
> that will give an "Yes" or "No" answer.

if grep -q '^flags.*\bfpu\b.*\btsc\b.*\bcx8\b.*\bcmov\b' /proc/cpuinfo; then
	echo Yes
else
	echo No
fi

Ben.

-- 
Ben Hutchings
Usenet is essentially a HUGE group of people passing notes in class.
                      - Rachel Kadel, `A Quick Guide to Newsgroup
Etiquette'

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: