ref: 15f05a0ca14c062e2f718cff0af2f097c6e6d228
dir: /osuny/
#!/bin/rc -x
# 2022-04-09T23:21:30-04:00
rfork e
host=osuny.inri.net
auth=auth.inri.net
sys=`{echo $host | awk -F '.' '{print $1}'}
switch($1){
case -m
rimport -c -s $sys $host / /n/$sys
case -t
rfork n &&
rimport osuny.inri.net /net &&
telnet -r tcp!$host!666
case -tt
rfork n &&
rimport osuny.inri.net /net &&
telnet -r tcp!$host!7734
case -s
ssh bbs@$host
case -ss
ssh tcp!osuny.bell-labs.co!999
case *
if(~ $service cpu terminal){
label $sys
rcpu -h $host $*
}
if not
drawterm -h $host -a $auth $*
}