shithub: rc

ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /gaff/

View raw version
#!/bin/rc -x
# 2024-02-22T22:50:17-05:00
rfork e
host=gaff.inri.net
auth=auth.inri.net
sys=`{echo $host | awk -F '.' '{print $1}'}
switch($1){
case -b
	gaff -c 'pager=() mother -b'
case -m
	rimport -c -p -s $sys $host / /n/$sys
case *
	if(~ $service cpu terminal){
		label $sys
		rcpu -h $host $*
	}
	if not
		drawterm -h $host -a $auth $*
}