xref: /csrg-svn/sys/hp300/stand/installboot.sh (revision 66417)
1*66417Sbostic#!/bin/sh -
2*66417Sbostic#
3*66417Sbostic# Copyright (c) 1994
4*66417Sbostic#	The Regents of the University of California.  All rights reserved.
5*66417Sbostic#
6*66417Sbostic# %sccs.include.redist.sh%
7*66417Sbostic#
8*66417Sbostic#	@(#)installboot.sh	8.2 (Berkeley) 03/21/94
9*66417Sbostic#
1058676Smckusick# compatibility with old installboot program
1158676Smckusick#
1258676Smckusickif [ $# != 2 ]
1358676Smckusickthen
1458676Smckusick	echo "Usage: installboot bootprog device"
1558676Smckusick	exit 1
1658676Smckusickfi
1758676Smckusickif [ ! -f $1 ]
1858676Smckusickthen
1958676Smckusick	echo "Usage: installboot bootprog device"
2058676Smckusick	echo "${1}: bootprog must be a regular file"
2158676Smckusick	exit 1
2258676Smckusickfi
2358676Smckusickif [ ! -c $2 ]
2458676Smckusickthen
2558676Smckusick	echo "Usage: installboot bootprog device"
2658676Smckusick	echo "${2}: device must be a char special file"
2758676Smckusick	exit 1
2858676Smckusickfi
2958676Smckusick/sbin/disklabel -B -b $1 $2
3058676Smckusickexit $?
31