#! /bin/sh
#
# @(#)setENABLEIMAGE	1.3	LPS_UNX_COM	2/19/95
#
# Copyright 1993   Digital Equipment Corporation, Maynard, MA
#
# setENABLEIMAGES
#
# A script that produces a value for attribute ENABLEIMAGES.
#
# 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:
#    PAGER
#
# 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

if [ "$CLASS" = "ENV" ]
then
   NOTES="
Typically a site will not use this capability, in which case you
should simply press the RETURN key to choose the default response."
fi

showhelp true "
Do you want to display user images on banner sheets?

The LPS Print Client software contains an optional capability of
displaying an image of the requesting user on the banner sheet.  If
this feature is enabled, the Print Client will look for a corresponding
file in the LPS images directory and transmit that file along with 
the banner sheet information.
$NOTES"

if yesno $DEFVAL "Display user images on banner sheets"
then
    resp="Yes"
else
    resp="No"
fi

echo "$resp" > $OUTFILE

exit 0
