#! /bin/sh
#
# @(#)setOFFSETSTACK	1.2	LPS_UNX_COM	02/15/93
#
# Copyright 1993   Digital Equipment Corporation, Maynard, MA
#
# setOFFSETSTACK
#
# A script that produces a value for attribute OFFSETSTACK.
#
# 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
#
# 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="
The default is to enable offset stacking.  A typical site will choose
the default response to this question."
fi

showhelp true "
Enable offset stacking for print jobs?

A PrintServer printer has the ability to stack paper in two positions
when the output is sent to one of the large output trays, making it
easier to separate print jobs.
$NOTES"

if yesno $DEFVAL "Enable offset stacking for print jobs"
then
    resp="Yes"
else
    resp="No"
fi

echo "$resp" > $OUTFILE

exit 0
