shithub: rc

ref: 4028a0b5f197066ef36281f45c8efbaaaf3dbe37
dir: /bin/mk9/

View raw version
#!/bin/rc -ex
9fs 9fat
if(test -f /n/9fat/9pc64 || test -f /n/9fat/9pc){
	rm /n/9fat/9bootfat
	cp /386/9bootfat /n/9fat/
	chmod +al /n/9fat/9bootfat
}
if(test -f /n/9fat/9pc64){
	mv /n/9fat/9pc64^('' .bak)
	cp /amd64/9pc64 /n/9fat/
}
if(test -f /n/9fat/9pc){
	mv /n/9fat/9pc^('' .bak)
	cp /386/9pc /n/9fat/
}
if(test -f /n/9fat/9zynq){
	mv /n/9fat/9zynq^('' .bak)
	cp /arm/9zynq /n/9fat/
}
rm /srv/dos
unmount /n/9fat
unmount /n/9