installboot.sh revision 1.2 1 #!/bin/sh
2 # $NetBSD: installboot.sh,v 1.2 2005/06/14 17:29:09 dsl Exp $
3
4 # compatibility with old installboot program
5 #
6 # @(#)installboot.sh 8.1 (Berkeley) 6/10/93
7 #
8 if [ $# != 2 ]
9 then
10 echo "Usage: installboot bootprog device"
11 exit 1
12 fi
13 if [ ! -f $1 ]
14 then
15 echo "Usage: installboot bootprog device"
16 echo "${1}: bootprog must be a regular file"
17 exit 1
18 fi
19 if [ ! -c $2 ]
20 then
21 echo "Usage: installboot bootprog device"
22 echo "${2}: device must be a char special file"
23 exit 1
24 fi
25 /usr/sbin/installboot $2 $1
26 exit $?
27