Home | History | Annotate | Line # | Download | only in sun3
MakeBootTape revision 1.3
      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.3 1997/12/20 02:52:49 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 ../../binary/kernel/netbsd-rd.gz |
     21   dd of=$T obs=8k conv=sync
     22 
     23 # Segment 3 is the miniroot image, unzipped!
     24 gzip -d -c ../miniroot/miniroot.gz |
     25   dd of=$T obs=8k
     26 
     27 # Done!
     28 mt -f $T rewind
     29 
     30