shithub: riscv

ref: 5a51e900dd113a1a5f2d2a0e8bac067fbc7da3ae
dir: /rc/bin/service/!tcp565/

View raw version
#!/bin/rc
#whoami service net dir
loc=`{cat $3/local|sed 's/!.*//'}
rem=`{cat $3/remote}
port=`{echo $rem|sed 's/^[^!]*!//'}
rem=`{echo $rem|sed 's/!.*//'}
echo i am $loc sysname $sysname you are $rem port $port