#!/bin/sh
#ident "Copyright (C) Compaq Computer Corporation. 1999 - 2001"
#ident "@(#)install.Linux 1.2 2001/16/02"
#
# This is the Compaq Management CD installation script. It is used
# to install Survey for Linux the Compaq Management CD.

SURVEYRPM="`ls survey.rpm 2>/dev/null`"
if [ $? -ne 0 ]; then
   echo "There is no survey rpm in this directory"
   exit 1;
fi;

cp ./${SURVEYRPM} /tmp/${SURVEYPRM}  2>/dev/null
if [ $? -ne 0 ]; then
   echo "Copy of ${SURVEYRPM} to /tmp failed."
   exit 1;
fi;

cd /tmp

rpm -Uhv ${SURVEYRPM}
if [ $? -ne 0 ]; then
   echo "install:  rpm fialed"
   exit 1;
fi;

rm -f /tmp/${SURVEYRPM}
