From cef6cf06eb4051a81d3c91c42259d26183b67514 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 12 Apr 2011 16:32:51 +0000 Subject: update installer for 9bootfat --- rc/bin/inst/bootfloppy | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 rc/bin/inst/bootfloppy (limited to 'rc/bin/inst/bootfloppy') diff --git a/rc/bin/inst/bootfloppy b/rc/bin/inst/bootfloppy deleted file mode 100755 index c9aebbc51..000000000 --- a/rc/bin/inst/bootfloppy +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/rc - -rfork e - -echo -echo 'Insert a disk other than your installation boot disk' -echo 'into your floppy drive; it will be erased to create' -echo 'the boot floppy.' -echo -echo -n 'Press enter when ready.' -read >/dev/null >[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 - } -} - -if(! ~ `{ls -l $adisk | awk '{print $6}'} 1474560){ - echo 'Will not format non-floppy disk '^$"adisk. >[1=2] - exit 'bad adisk' -} - -log Formatting boot floppy -if (test -e /n/newfs/386/9loadnousb) - bind /n/newfs/386/9loadnousb /n/newfs/386/9load # cater to old bioses -disk/format -b /386/pbs \ - -fd $adisk /n/newfs/386/9load /n/newfs/386/9pcdisk.gz \ - /tmp/plan9ini.bak -x=$status - -if(~ $x ''){ - echo - echo 'Done!' - echo -} -exit $x -- cgit v1.2.3