1994-08-04 23:42:16 +04:00
|
|
|
#!/bin/sh
|
1994-10-26 10:22:45 +03:00
|
|
|
# $NetBSD: installboot.sh,v 1.2 1994/10/26 07:27:26 cgd Exp $
|
|
|
|
|
1994-08-04 23:42:16 +04:00
|
|
|
# compatibility with old installboot program
|
|
|
|
#
|
1994-10-26 10:22:45 +03:00
|
|
|
# @(#)installboot.sh 8.1 (Berkeley) 6/10/93
|
1994-08-04 23:42:16 +04:00
|
|
|
#
|
|
|
|
if [ $# != 2 ]
|
|
|
|
then
|
|
|
|
echo "Usage: installboot bootprog device"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ ! -f $1 ]
|
|
|
|
then
|
|
|
|
echo "Usage: installboot bootprog device"
|
|
|
|
echo "${1}: bootprog must be a regular file"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ ! -c $2 ]
|
|
|
|
then
|
|
|
|
echo "Usage: installboot bootprog device"
|
|
|
|
echo "${2}: device must be a char special file"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
/sbin/disklabel -B -b $1 $2
|
|
|
|
exit $?
|