From 333cd0d93d4d4fd22d4c6553207a01e7a4d9079f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 9 Sep 2004 09:54:02 +0000 Subject: add is_i586() based on "cpu family", hopefully it works for detecting K6 and C3 --- perl-install/detect_devices.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index ab706e76d..47d027e1e 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -771,6 +771,10 @@ sub isLaptop() { || cat_('/proc/cpuinfo') =~ /\bmobile\b/i; } +sub is_i586() { + cat_('/proc/cpuinfo') =~ /^cpu family\s*:\s*(\d+)/m && $1 < 6; +} + sub matching_type { my ($type) = @_; $type =~ /laptop/i && isLaptop(); -- cgit v1.2.1