2 # $NetBSD: installboot.sh,v 1.1.1.1 1998/06/09 07:53:06 dbj Exp $
4 # simple installboot program we can use until we have disklabel to do the job.
5 # (This one has the advantage that it runs on any architecture. However it
6 # expects the bootblock to be located at a very fixed position.)
9 echo "Usage: installboot bootprog device" >&2
10 if [ -n "$1" ]; then echo "$1" >&2; fi
14 if [ $# != 2 ]; then Usage
; fi
15 if [ ! -f $1 ]; then Usage
"bootprog must be a regular file"; fi
16 if [ ! -c $2 ]; then Usage
"device must be a character special file"; fi
18 dd if="$1" of
="$2" obs
=1024 seek
=32 conv
=osync
19 dd if="$1" of
="$2" obs
=1024 seek
=96 conv
=osync