shithub: bin.rc

ref: 7888f0d7ab5dbd4f0a92cef3730590a4c7b9bea8
dir: /bin/rwin/

View raw version
#!/bin/rc
rfork en
if(test -f /mnt/acme/index){ # in acme
	unmount /acme/bin/amd64 /bin 
	unmount /acme/bin /bin 
	tag=`{cat /mnt/acme/$winid/tag}
	dir=`{basename -d $tag(1)}
}
if not{ # in sam
	dir=`{basename -d $%}
}
exec window -m -cd $dir $*