#! /bin/sh
#
# @(#)setENABLEBANNE	1.3	LPS_UNX_COM	02/19/95
#
# Copyright 1993   Digital Equipment Corporation, Maynard, MA
#
# setENABLEBANNERS
#
# A script that produces a value for attribute ENABLEBANNERS.
#
# 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="
You can disable the printing of banner sheets as a default attribute
of Print Clients.  This feature, however, can be overridden when a 
Print Client is actually defined.

A typical site will choose the default response for this question."
fi

QUESTION="Enable printing of banner sheets"

showhelp true "
${QUESTION}?

Print Clients are normally created so that a \"banner sheet\" is output
before the first sheet of the print job.  This banner sheet provides
detailed information about the requesting user, the PrintServer
printer and Print Client used, and the host performing the print
services.

Some sites prefer to save paper when a printer is used by only a few
users located near the printer; in this case, banner sheets may be
considered a waste of paper.
$NOTES"

if yesno "$DEFVAL" "$QUESTION"
then
    resp="Yes"
else
    resp="No"
fi

echo $resp > $OUTFILE

exit 0
