diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-10 18:02:41 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-10 18:02:41 +0100 |
commit | aa2422b5eb68e41a129a13cc73a9774cac3405d9 (patch) | |
tree | 2404c1b401b3ac7cbe0508d994ebacc474925446 /sys/src/9/boot | |
parent | d4076731f1f3083255f395c90659e605a0823fa5 (diff) |
bootrc: keep original address when ndb/dnsgetip fails and let dial complain
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-x | sys/src/9/boot/net.rc | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |