MakeBootTape revision 1.1
11.1Sgwr#!/bin/sh
21.1Sgwr#
31.1Sgwr# Here is a generic script that makes a Sun3 boot tape using
41.1Sgwr# the files in this directory.
51.1Sgwr#
61.1Sgwr# $NetBSD: MakeBootTape,v 1.1 1997/12/18 20:17:48 gwr Exp $
71.1Sgwr
81.1SgwrT=${1:-/dev/nrst0}
91.1Sgwr
101.1Sgwr# Entertain...
111.1Sgwrset -x
121.1Sgwr
131.1Sgwr# Make sure we start at the beginning.
141.1Sgwrmt -f $T rewind
151.1Sgwr
161.1Sgwr# Segment 1 is the tapeboot program.
171.1Sgwrdd if=tapeboot of=$T obs=8k conv=sync
181.1Sgwr
191.1Sgwr# Segment 2 is the ramdisk kernel.
201.1Sgwrgzip -d -c netbsd-rd.gz | dd of=$T obs=8k conv=sync
211.1Sgwr
221.1Sgwr# Segment 3 is the miniroot image, unzipped!
231.1Sgwrgzip -d -c miniroot.gz | dd of=$T obs=16k
241.1Sgwr
251.1Sgwr# Done!
261.1Sgwrmt -f $T rewind
271.1Sgwr
28