#! /bin/sh
#
# @(#)setLPSIMAGES	1.3	LPS_UNX_COM	2/19/95
#
# Copyright 1993   Digital Equipment Corporation, Maynard, MA
#
# setLPSIMAGES
#
# A script that produces a value for attribute LPSIMAGES.
#
# Parameters:
#    $1 - LPS class identifier, one of {PC, MC, PS, ENV}
#    $2 - Operating system type identifier (eg: SV2, BSD, etc)
#    $3 - Print client type identifier (eg: AIX, BSD, SV3, etc)
#    $4 - PrintServer printer model (eg: LPS17, LPS20)
#    $5 - Default value for the attribute
#    $6 - Path of the output file to receive the final attribute value
#
# Global variables:
#    ECHON
#    FUNCS
#    PAGER
#    TMPDIR
#    TR    (for the checknumrange() function)
#
# Exit values:
#    0 - Success, output file contains newly set attribute value.
#    1 - Error or interruption occurred, error messages go to stderr,
#	 contents of the output file are undefined.
###

CLASS=$1
OSTYPE=$2
PCTYPE=$3
PSMODEL=$4
DEFVAL=$5
OUTFILE=$6

. $FUNCS   # Import the standard LPS shell functions

if [ "$CLASS" = "ENV" ]
then
   NOTES="
Most sites will choose the default response, which should be the
directory created when the PrintServer software was installed on
the local system.  However, you are able to specify a different
image directory for each Print Client, if you so desire."
fi

QUESTION="Image files directory"

showhelp true "
${QUESTION}?

If banner images are enabled for a Print Client, then all image files
will be searched for in a special directory, called the \"LPS image
files directory\".

This question asks you to enter the path of this special image
directory.
$NOTES"

getpath z "$DEFVAL" "$QUESTION"

if [ -z "$RESPONSE" ]
then
    RESPONSE="$DEFVAL"
fi

echo "$RESPONSE" > $OUTFILE

exit 0
