shithub: riscv

ref: 833a3b7d56299a86df226f2db7c9a4080c5000a7
dir: /rc/bin/F003758/

View raw version
#!/bin/rc

rfork e
part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
if(~ $#part 0) {
	echo 'no 9fat partition found' >[1=2]
	exit no.9fat
}

part=$part(1)

if(! test -f /srv/dos)
	dossrv >/dev/null </dev/null >[2]/dev/null

unmount /n/9fat >/dev/null >[2]/dev/null
mount -c /srv/dos /n/9fat $part
unmount /n/9 >/dev/null >[2]/dev/null
mount -c /srv/dos /n/9 $part