#! /bin/sh
# Default Shell File to route a file to a printer
# The default is to just lpr it with the -r flag, and the -s flag only if the
#  file didn't fit on /tmp (otherwise /tmp fills up too easily)
# Edit as needed to, say, execute a filter
#
# Inputs are:
# $1 = printer name
# $2 = file to print
# $3 = .fminit2.0 directory path
# $4 = home directory
# $5 = 0 or 1 as printfile lives on /tmp or on $HOME
# $6 = bin directory for maker
#
if test $5 -eq 1
then
	lpr -r -s -P$1 "$2"
else
	lpr -r -P$1 "$2"
fi
