From 62a05786eaa18b1d9d87e18cf17b97c467696c7f Mon Sep 17 00:00:00 2001 From: brezak Date: Thu, 4 Aug 1994 19:42:16 +0000 Subject: [PATCH] Use installboot.sh from 4.4 instead of installboot.c --- sys/arch/hp300/stand/Makefile | 7 ++++--- sys/arch/hp300/stand/installboot.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 sys/arch/hp300/stand/installboot.sh diff --git a/sys/arch/hp300/stand/Makefile b/sys/arch/hp300/stand/Makefile index 0f6c3e1779eb..2915f59636ca 100644 --- a/sys/arch/hp300/stand/Makefile +++ b/sys/arch/hp300/stand/Makefile @@ -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 diff --git a/sys/arch/hp300/stand/installboot.sh b/sys/arch/hp300/stand/installboot.sh new file mode 100644 index 000000000000..ecbab94a273a --- /dev/null +++ b/sys/arch/hp300/stand/installboot.sh @@ -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 $?