Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / next68k / stand / boot / installboot.sh
blobcfba310cc3eef994778f8b536be94288b3110dd5
1 #!/bin/sh
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.)
8 Usage() {
9 echo "Usage: installboot bootprog device" >&2
10 if [ -n "$1" ]; then echo "$1" >&2; fi
11 exit 1
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
20 exit $?