NetBSD/sys/arch/hp300/stand/installboot/installboot.sh
2005-12-11 12:16:03 +00:00

27 lines
524 B
Bash

#!/bin/sh
# $NetBSD: installboot.sh,v 1.3 2005/12/11 12:17:23 christos Exp $
# compatibility with old installboot program
#
# @(#)installboot.sh 8.1 (Berkeley) 6/10/93
#
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
/usr/sbin/installboot $2 $1
exit $?