Home | History | Annotate | Line # | Download | only in sun3
MakeBootTape revision 1.2
      1  1.1  gwr #!/bin/sh
      2  1.1  gwr #
      3  1.1  gwr # Here is a generic script that makes a Sun3 boot tape using
      4  1.1  gwr # the files in this directory.
      5  1.1  gwr #
      6  1.2  gwr # $NetBSD: MakeBootTape,v 1.2 1997/12/18 20:20:10 gwr Exp $
      7  1.1  gwr 
      8  1.1  gwr T=${1:-/dev/nrst0}
      9  1.1  gwr 
     10  1.1  gwr # Entertain...
     11  1.1  gwr set -x
     12  1.1  gwr 
     13  1.1  gwr # Make sure we start at the beginning.
     14  1.1  gwr mt -f $T rewind
     15  1.1  gwr 
     16  1.1  gwr # Segment 1 is the tapeboot program.
     17  1.1  gwr dd if=tapeboot of=$T obs=8k conv=sync
     18  1.1  gwr 
     19  1.1  gwr # Segment 2 is the ramdisk kernel.
     20  1.1  gwr gzip -d -c netbsd-rd.gz | dd of=$T obs=8k conv=sync
     21  1.1  gwr 
     22  1.1  gwr # Segment 3 is the miniroot image, unzipped!
     23  1.2  gwr gzip -d -c miniroot.gz | dd of=$T obs=8k
     24  1.1  gwr 
     25  1.1  gwr # Done!
     26  1.1  gwr mt -f $T rewind
     27  1.1  gwr 
     28