]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/boot/net.rc
fixed by fuck up
[plan9front.git] / sys / src / 9 / boot / net.rc
index 42ba9f19e4d04eb31cee30df1e26bc0caef6fc08..fb399ef9732303c92ff005618e622a758a11129c 100755 (executable)
@@ -21,14 +21,15 @@ fn confignet{
        if(~ $#auth 0)
                auth=`{awk -F'=' '/^[   ]*auth=/{print $2}' /net/ndb}
        if(~ $#fs 0)
-               ask fs ' ip is? ' $auth(1)
+               ask fs ' address is? ' $auth(1)
        if(~ $#auth 0)
-               ask auth ' ip is? ' $fs(1)
+               ask auth ' address is? ' $fs(1)
 
        # 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
                }
        }