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