shithub: riscv

Download patch

ref: aa2422b5eb68e41a129a13cc73a9774cac3405d9
parent: d4076731f1f3083255f395c90659e605a0823fa5
author: cinap_lenrek <[email protected]>
date: Wed Dec 10 13:02:41 EST 2014

bootrc: keep original address when ndb/dnsgetip fails and let dial complain

--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -28,7 +28,8 @@
 	# resolve dns names
 	if(test -x /bin/ndb/dnsgetip){
 		for(i in fs auth secstore){
-			$i=`{for(x in $$i) ndb/dnsgetip -a $x}
+			x=`{for(x in $$i) ndb/dnsgetip -a $x}
+			~ $#x 0 || $i=$x
 		}
 	}