#!/bin/rc -x # 2018-02-20T18:32:10-0500 rfork e host=dl.inri.net auth=mirv.inri.net vnc=$host sys=fs if(! ~ $service unix && ! ip/ping -q -n 1 $host) exit switch($1){ case -m rimport -c -p -s $sys $host / /n/$sys case -v if(test -d /n/$sys/net) bind /n/$sys/net /net window -m vncv $vnc case * if(~ $service cpu terminal){ label $sys rcpu -p -h $host $* } if not drawterm -p -h $host -a $auth $* }