#!/bin/rc -x # 2020-12-04T17:09:28-05:00 rfork e host=5ess.inri.net auth=5ess.inri.net #vnc=192.73.234.3:16 sys=`{echo $host | awk -F '.' '{print $1}'} switch($1){ case -m rimport -c -s $sys $host / /n/$sys case -v rfork n if(test -d /n/$sys/net) bind /n/$sys/net /net window -m vncv $vnc case * if(~ $service cpu terminal){ label $sys rcpu -h $host $* } if not drawterm -h $host -a $auth $* }