summaryrefslogtreecommitdiff
path: root/dis/demo/lego/clockreg
blob: 9c0c6447c7568ae89d227fa4552781ad678a1c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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}
}