diff options
author | Magnus Holmberg <mho@cvs.openbsd.org> | 1998-02-12 20:32:20 +0000 |
---|---|---|
committer | Magnus Holmberg <mho@cvs.openbsd.org> | 1998-02-12 20:32:20 +0000 |
commit | 843097450daff9fa1bcb096fbcd7aa8fd1dd6dcc (patch) | |
tree | ac27b42ecb31fa02b6d2ac3e90da487b8a5f2694 /sys/arch/sparc/stand/binstall | |
parent | c0ce11d32b7b84071f76781952c49c6b3596de3b (diff) |
Look for installboot in /usr/mdec unless user specified otherwise.
Diffstat (limited to 'sys/arch/sparc/stand/binstall')
-rw-r--r-- | sys/arch/sparc/stand/binstall/binstall.sh | 11 |
1 files changed, 8 insertions, 3 deletions
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") |