Home | History | Annotate | Line # | Download | only in installboot
installboot.sh revision 1.1
      1  1.1  thorpej #!/bin/sh
      2  1.1  thorpej #	$NetBSD: installboot.sh,v 1.1 1997/02/04 03:53:00 thorpej Exp $
      3  1.1  thorpej 
      4  1.1  thorpej # compatibility with old installboot program
      5  1.1  thorpej #
      6  1.1  thorpej #	@(#)installboot.sh	8.1 (Berkeley) 6/10/93
      7  1.1  thorpej #
      8  1.1  thorpej if [ $# != 2 ]
      9  1.1  thorpej then
     10  1.1  thorpej 	echo "Usage: installboot bootprog device"
     11  1.1  thorpej 	exit 1
     12  1.1  thorpej fi
     13  1.1  thorpej if [ ! -f $1 ]
     14  1.1  thorpej then
     15  1.1  thorpej 	echo "Usage: installboot bootprog device"
     16  1.1  thorpej 	echo "${1}: bootprog must be a regular file"
     17  1.1  thorpej 	exit 1
     18  1.1  thorpej fi
     19  1.1  thorpej if [ ! -c $2 ]
     20  1.1  thorpej then
     21  1.1  thorpej 	echo "Usage: installboot bootprog device"
     22  1.1  thorpej 	echo "${2}: device must be a char special file"
     23  1.1  thorpej 	exit 1
     24  1.1  thorpej fi
     25  1.1  thorpej /sbin/disklabel -B -b $1 $2
     26  1.1  thorpej exit $?
     27