#!/bin/sh
#
# readtape
#
# Copyright (c) 1988-1993 Frame Technology Corp. All rights reserved.
# $Id: readcd.2nd,v 1.2 1994/05/04 17:03:02 lss Exp $
#
# This script execs the appropriate readtape script 
# for the current platform.

script=$1
cddir=$2

vendor=unknown
FMARCH=`.install/fmarch`
export FMARCH
image=$1
# simplify $FMARCH to show vendor name only
case $FMARCH in
    apollo*)
      vendor=apollo;;
    sun*)
      vendor=sun;;
    hp*)
      vendor=hp;;
    dec*)
      vendor=dec;;
    ibm*)
      vendor=ibm;;
    sgi*)
      vendor=sgi;;
    sony*)
      vendor=sony;;
    # fall thru, $FMARCH may be incorrect
esac

[ "$vendor" = "unknown" ] && {
   echo Could not determine Vendor name of this platform
   echo installation aborting.
   exit 1
}

exec .install/$script $vendor $cddir
