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