ref: 9c71514b7158cfa8102b6a32775b783fcd9681ed
dir: /sys/src/9/boot/tcp.rc/
#!/bin/rc fn configtcp{ must ip/ipconfig -p $* if(~ $#fs 0) fs=`{awk -F'=' '/fs=/{print $2; exit}' /net/ndb} if(~ $#auth 0) auth=`{awk -F'=' '/auth=/{print $2; exit}' /net/ndb} if(~ $#fs 0) ask fs ' ip is?' $auth if(~ $#auth 0) ask auth ' ip is?' $fs fsaddr=tcp!$fs!564 authaddr=tcp!$auth!567 } fn connecttcp{ srv -q $"fsaddr boot } mtcp=(configtcp connecttcp) mt=(mtcp $mt)