shithub: purgatorio

ref: 2cab6c0b2f7ccfad3c7990070ab0917cfd978cf1
dir: /appl/demo/lego/clockreg.sh/

View raw version
#!/dis/sh.dis
load std

port=$1
DIR=/dis/demo/lego
pctl forkns newpgrp

cd $DIR
if { firmdl $port /dis/demo/lego/styx.srec } {
	legolink $port
	memfs /tmp
	cd /tmp
	mount -o -A /net/legolink /n/remote
	$DIR/clockface /n/remote
	echo reset > clockface
	grid/register -a resource Robot -a name 'Lego Clock' {export /tmp}
}