summaryrefslogtreecommitdiff
path: root/sys/src/libauthsrv/readnvram.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-03-26 23:47:19 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-03-26 23:47:19 +0100
commitb964e60a49ef7037b9360785de6e7d91c5f918c3 (patch)
treec17633982349c907b173d1b4f4393b24bb37b927 /sys/src/libauthsrv/readnvram.c
parentd4abe404b4ad9a7c913bde37d211be614f27c965 (diff)
libauthsrv: recognize amd64 $cputype in readnvram() to look for default locations
Diffstat (limited to 'sys/src/libauthsrv/readnvram.c')
-rw-r--r--sys/src/libauthsrv/readnvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libauthsrv/readnvram.c b/sys/src/libauthsrv/readnvram.c
index 3303ed613..ae6045b18 100644
--- a/sys/src/libauthsrv/readnvram.c
+++ b/sys/src/libauthsrv/readnvram.c
@@ -146,7 +146,7 @@ findnvram(Nvrwhere *locp)
cputype = getenv("cputype");
if(cputype == nil)
cputype = strdup("mips");
- if(strcmp(cputype, "386")==0 || strcmp(cputype, "alpha")==0) {
+ if(strcmp(cputype, "386")==0 || strcmp(cputype, "amd64")==0 || strcmp(cputype, "alpha")==0) {
free(cputype);
cputype = strdup("pc");
}