1997-12-18 23:17:48 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Here is a generic script that makes a Sun3 boot tape using
|
|
|
|
# the files in this directory.
|
|
|
|
#
|
1997-12-20 05:52:49 +03:00
|
|
|
# $NetBSD: MakeBootTape,v 1.3 1997/12/20 02:52:49 gwr Exp $
|
1997-12-18 23:17:48 +03:00
|
|
|
|
|
|
|
T=${1:-/dev/nrst0}
|
|
|
|
|
|
|
|
# Entertain...
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# Make sure we start at the beginning.
|
|
|
|
mt -f $T rewind
|
|
|
|
|
|
|
|
# Segment 1 is the tapeboot program.
|
|
|
|
dd if=tapeboot of=$T obs=8k conv=sync
|
|
|
|
|
|
|
|
# Segment 2 is the ramdisk kernel.
|
1997-12-20 05:52:49 +03:00
|
|
|
gzip -d -c ../../binary/kernel/netbsd-rd.gz |
|
|
|
|
dd of=$T obs=8k conv=sync
|
1997-12-18 23:17:48 +03:00
|
|
|
|
|
|
|
# Segment 3 is the miniroot image, unzipped!
|
1997-12-20 05:52:49 +03:00
|
|
|
gzip -d -c ../miniroot/miniroot.gz |
|
|
|
|
dd of=$T obs=8k
|
1997-12-18 23:17:48 +03:00
|
|
|
|
|
|
|
# Done!
|
|
|
|
mt -f $T rewind
|
|
|
|
|