#!/bin/sh

# NOTE:
# This "lpr" does not spool, and will thus fail
# if any attempt is made to print again while another
# print is still in progress!

if [ -f /tmp/spool_lp0 ] ; then exit 1 ; fi

cat $* > /tmp/spool_lp0

gs $GS_OPTS -sOutputFile=/dev/usb/lp0  -dBATCH -dNOPAUSE -dQUIET -dSAFER -dDISKFONTS /tmp/spool_lp0

rm -f /tmp/spool_lp0

