shithub: rc

ref: 9110813b23f290af84be238d28cbb40c10d42dd0
dir: /9front/

View raw version
#!/bin/rc -x
# 2022-04-06T22:39:35-04:00
rfork e
host=9front.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 $*
}