]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/F003758
updating cwfs and moving installer in /rc/bin
[plan9front.git] / rc / bin / F003758
1 #!/bin/rc
2
3 rfork e
4 part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
5 if(~ $#part 0) {
6         echo 'no 9fat partition found' >[1=2]
7         exit no.9fat
8 }
9
10 part=$part(1)
11
12 if(! test -f /srv/dos)
13         dossrv >/dev/null </dev/null >[2]/dev/null
14
15 unmount /n/9fat >/dev/null >[2]/dev/null
16 mount -c /srv/dos /n/9fat $part
17 unmount /n/9 >/dev/null >[2]/dev/null
18 mount -c /srv/dos /n/9 $part