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