git: 9front

Download patch

ref: 11a51d0314aa45fbebccb995da4c670c7f7f407e
parent: 2c892ff627067f1415d92e8dcdae0960bd1e84f0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Mar 26 19:47:19 EDT 2014

libauthsrv: recognize amd64 $cputype in readnvram() to look for default locations

--- a/sys/src/libauthsrv/readnvram.c
+++ b/sys/src/libauthsrv/readnvram.c
@@ -146,7 +146,7 @@
 		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");
 	}
--