remove crap, looks like import fuckup from iso
This commit is contained in:
parent
a150899221
commit
715570c24e
7 changed files with 0 additions and 159 deletions
|
@ -1,11 +0,0 @@
|
|||
#!/bin/rc
|
||||
rfork e
|
||||
flop=/dev/fd0disk
|
||||
if(! test -r $flop)
|
||||
flop='#f'/fd0disk
|
||||
if(! test -f /srv/dos)
|
||||
dossrv >/dev/null </dev/null >[2]/dev/null
|
||||
unmount /n/a:>[2]/dev/null
|
||||
mount -c /srv/dos /n/a: $flop
|
||||
unmount /n/a >[2]/dev/null
|
||||
mount -c /srv/dos /n/a $flop
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/rc
|
||||
|
||||
rfork e
|
||||
|
||||
if(test -f /dev/sd*/dos*){
|
||||
dosmnt 1 /n/c:
|
||||
dosmnt 1 /n/c
|
||||
exit
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
#!/bin/rc
|
||||
# usbfat: [disk [mtpt]] - mount a USB disk's MS FAT file system,
|
||||
# which might be the only thing on the disk, or might be
|
||||
# a partition within the disk.
|
||||
rfork e
|
||||
disk = ()
|
||||
mtpt = /n/usb
|
||||
|
||||
test -e /dev/usb || bind -a '#u' /dev || {
|
||||
echo no '#u/usb' >[1=2]
|
||||
exit nousb
|
||||
}
|
||||
test -e /dev/usbdctl || mount -a /srv/usb /dev || {
|
||||
echo cannot mount /srv/usb >[1=2]
|
||||
exit nousbd
|
||||
}
|
||||
|
||||
disks=()
|
||||
mtpt=()
|
||||
switch ($#*) {
|
||||
case 0
|
||||
;
|
||||
case 1
|
||||
disks = $1
|
||||
case 2
|
||||
disks = $1
|
||||
mtpt = $2
|
||||
case *
|
||||
echo usage: $0 ' [disk [mtpt]]' >[1=2]
|
||||
exit usage
|
||||
}
|
||||
|
||||
if(~ `{ls /n/usb >[2]/dev/null | wc -l} 0)
|
||||
mount /srv/usb /n/usb >[2]/dev/null
|
||||
if (~ $#disks 0){
|
||||
disks = /dev/sdU*/data
|
||||
if(! test -e $disks(1)){
|
||||
echo no usb disks >[1=2]
|
||||
exit nodisk
|
||||
}
|
||||
disks = (/dev/sdU*/9fat /dev/sdXX/9fat /dev/sdU*/data /dev/sdXX/data)
|
||||
}
|
||||
for(d in $disks){
|
||||
if(! ~ $done yes) {
|
||||
if(~ $d sdU*.[0-9]* sdXX*)
|
||||
d=/dev/$d/data
|
||||
if(test -e $d){
|
||||
name=`{echo $d | sed 's/.*(sd(XX|U[0-9]+\.[0-9]+)).*/\1/'}
|
||||
if(~ $#mtpt 0)
|
||||
mnt=/n/$name
|
||||
if not
|
||||
mnt=$mtpt
|
||||
# don't mount it if it seems to be already mounted.
|
||||
# if(! test -e $mnt/* && grep -s geometry /dev/$name/ctl)
|
||||
{
|
||||
blk = `{disk/fdisk -p $d |
|
||||
awk '/^part dos / {print $3}'}
|
||||
if (! ~ $#blk 0 && ~ $blk [0-9]*)
|
||||
d=$d:$blk
|
||||
if (mount -c <{dossrv -sf $d >[2]/dev/null} $mnt) {
|
||||
echo $mnt
|
||||
done = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
exit ''
|
|
@ -1,18 +0,0 @@
|
|||
#!/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
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/rc
|
||||
if(! test -f /srv/dos)
|
||||
dossrv >/dev/null </dev/null >[2]/dev/null
|
||||
unmount /n/b:>[2]/dev/null
|
||||
mount -c /srv/dos /n/b: /dev/fd1disk
|
||||
unmount /n/b >[2]/dev/null
|
||||
mount -c /srv/dos /n/b /dev/fd1disk
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/rc
|
||||
if(! test -f /srv/dos)
|
||||
dossrv >/dev/null </dev/null >[2]/dev/null
|
||||
unmount /n/a:>[2]/dev/null
|
||||
|
||||
if(~ $#adisk 1)
|
||||
; # do nothing
|
||||
if not if(~ $#bootfile 0)
|
||||
adisk=/dev/fd0disk
|
||||
if not {
|
||||
switch($bootfile) {
|
||||
case sd*
|
||||
adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/data#'}
|
||||
case fd*
|
||||
adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
|
||||
case *
|
||||
echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
|
||||
exit oops
|
||||
}
|
||||
}
|
||||
|
||||
mount -c /srv/dos /n/a: $adisk
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/rc
|
||||
|
||||
rfork e
|
||||
if(! test -f /srv/dos)
|
||||
dossrv >/dev/null </dev/null >[2]/dev/null
|
||||
unmount /n/a:>[2]/dev/null
|
||||
|
||||
switch($bootfile) {
|
||||
case sd*!cdboot!*
|
||||
# just look for the right file. bootfile isn''t trustworthy
|
||||
adisk=/dev/sd*/cdboot
|
||||
if(! ~ $#adisk 1)
|
||||
adisk=$adisk(1)
|
||||
case sd*
|
||||
adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/dos#'}
|
||||
case fd*
|
||||
adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
|
||||
case *
|
||||
echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
|
||||
exit oops
|
||||
}
|
||||
|
||||
mount -c /srv/dos /n/a: $adisk
|
||||
|
Loading…
Reference in a new issue