2016-02-14 04:18:33 +00:00
|
|
|
#!/bin/rc
|
2016-12-02 23:24:19 +00:00
|
|
|
if(~ $#* 3){
|
|
|
|
netdir=$3
|
|
|
|
remote=$2!`{cat $3/remote}
|
|
|
|
}
|
2016-02-14 04:18:33 +00:00
|
|
|
fn server {
|
2016-12-02 23:24:19 +00:00
|
|
|
~ $#remote 0 || echo -n $netdir $remote >/proc/$pid/args
|
2016-04-19 22:41:03 +00:00
|
|
|
rm -f /env/'fn#server'
|
2016-02-14 04:18:33 +00:00
|
|
|
. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
|
|
|
|
}
|
|
|
|
exec tlssrv -a /bin/rc -c server
|