shithub: rc

ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /catv/

View raw version
#!/bin/rc -x
# 2022-04-06T22:39:54-04:00
rfork e
host=catv.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 *
	if(~ $service cpu terminal){
		label $sys
		rcpu -h $host $*
	}
	if not
		drawterm -h $host -a $auth $*
}