#!/bin/sh

# Here is a generic script that makes a Sun3 boot tape
# using the files in this directory.

T=/dev/nrst0
set -x

# Make sure we start at the beginning.
mt -f $T rewind

# Segment 1 is the tapeboot program.
dd if=tapeboot of=$T bs=8k conv=sync

# Segment 2 is the ramdisk kernel.
gzip -d < netbsd-rd.gz |dd of=$T bs=8k conv=sync

# Segment 3 is the miniroot image, unzipped!
gzip -d < miniroot.gz |dd of=$T bs=8k

# Done!
mt -f $T rewind

