Use installboot.sh from 4.4 instead of installboot.c

This commit is contained in:
brezak 1994-08-04 19:42:16 +00:00
parent c2e9be0873
commit 62a05786ea
2 changed files with 30 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/10/93
# $Id: Makefile,v 1.9 1994/07/18 06:27:12 mycroft Exp $
# $Id: Makefile,v 1.10 1994/08/04 19:42:16 brezak Exp $
# RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long
RELOC= FFF00000
@ -123,8 +123,9 @@ dcopy: copy.o srt0.o conf.o ${LIBS}
mkboot: ${.CURDIR}/mkboot.c
${CC} ${CFLAGS} -o mkboot ${.CURDIR}/mkboot.c
installboot: ${.CURDIR}/installboot.c
${CC} ${CFLAGS} -o installboot ${.CURDIR}/installboot.c
installboot: ${.CURDIR}/installboot.sh
@rm -f installboot
cp -p ${.CURDIR}/installboot.sh installboot
# utilities

View File

@ -0,0 +1,26 @@
#!/bin/sh
# compatibility with old installboot program
#
# from: @(#)installboot.sh 8.1 (Berkeley) 6/10/93
#
# $Id: installboot.sh,v 1.1 1994/08/04 19:42:18 brezak Exp $
#
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 $?