From 843097450daff9fa1bcb096fbcd7aa8fd1dd6dcc Mon Sep 17 00:00:00 2001 From: Magnus Holmberg Date: Thu, 12 Feb 1998 20:32:20 +0000 Subject: Look for installboot in /usr/mdec unless user specified otherwise. --- sys/arch/sparc/stand/binstall/binstall.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sys/arch/sparc/stand/binstall') diff --git a/sys/arch/sparc/stand/binstall/binstall.sh b/sys/arch/sparc/stand/binstall/binstall.sh index 51a333c6599..bf70b807293 100644 --- a/sys/arch/sparc/stand/binstall/binstall.sh +++ b/sys/arch/sparc/stand/binstall/binstall.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: binstall.sh,v 1.1 1997/09/17 10:46:14 downsj Exp $ +# $OpenBSD: binstall.sh,v 1.2 1998/02/12 20:32:19 mho Exp $ # $NetBSD: binstall.sh,v 1.3 1996/04/07 20:00:12 thorpej Exp $ # @@ -51,6 +51,11 @@ do esac done +INSTALLBOOT=${INSTALLBOOT:-$MDEC/installboot} +if [ ! -x $INSTALLBOOT ]; then + INSTALLBOOT=/usr/mdec/installboot; +fi + DOIT=${TEST:+echo "=>"} if [ $# != 2 ]; then @@ -94,8 +99,8 @@ case $WHAT in vecho Target: $TARGET $DOIT dd if=${MDEC}/boot of=$TARGET bs=32 skip=$SKIP sync; sync; sync - vecho installboot ${VERBOSE:+-v} $TARGET ${MDEC}/bootxx $DEV - $DOIT installboot ${VERBOSE:+-v} $TARGET ${MDEC}/bootxx $DEV + vecho $INSTALLBOOT ${VERBOSE:+-v} $TARGET ${MDEC}/bootxx $DEV + $DOIT $INSTALLBOOT ${VERBOSE:+-v} $TARGET ${MDEC}/bootxx $DEV ;; "net") -- cgit v1.2.3