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