ref: e1bb660ef2d15d9f53638d60c9e15aaa8579b9bf
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)