From aa2422b5eb68e41a129a13cc73a9774cac3405d9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 10 Dec 2014 18:02:41 +0100 Subject: bootrc: keep original address when ndb/dnsgetip fails and let dial complain --- sys/src/9/boot/net.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/src/9/boot/net.rc b/sys/src/9/boot/net.rc index 9f3d82767..fb399ef97 100755 --- a/sys/src/9/boot/net.rc +++ b/sys/src/9/boot/net.rc @@ -28,7 +28,8 @@ fn confignet{ # 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 } } -- cgit v1.2.3