From fc872da47d6c2b2865603da02ee913d1be17ce0f Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Sat, 14 Sep 2019 22:40:56 +0200 Subject: (alpha:Linux:*:*): Make sed command resilient to missing /proc/cpuinfo. --- configfsf.guess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configfsf.guess b/configfsf.guess index 4cd9454b3..2bb243d5e 100755 --- a/configfsf.guess +++ b/configfsf.guess @@ -918,7 +918,7 @@ EOF echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; -- cgit v1.2.1