Back in 5.x, I made a small change to the filter script to allow printing to an AppleTalk printer hanging off my wife's Mac. This requires you install the appletalk bridge system extension on the mac (available from Apple's FTP site). Here's the unified diff against 6.1's master-filter. You will also note the reference to the .paprc file in the lpd directory. That file merely contains the name of the printer; in my case it is "OL610e/PS:LaserWriter" but anyone using this can get if from nbplkup. 682 root> diff -u /usr/lib/rhs/rhs-printfilters/master-filter filter --- /usr/lib/rhs/rhs-printfilters/master-filter Tue Sep 14 17:40:26 1999 +++ filter Mon Jan 5 22:35:15 1998 @@ -355,9 +355,10 @@ # any post-filter to run (like smbclient?) # if [ "$PRINTER_TYPE" = "SMB" ]; then - bestpath="$bestpath | ${FPIDIR}/smbprint ${SPOOLDIR}/acct" - elif [ "$PRINTER_TYPE" = "NCP" ]; then - bestpath="$bestpath | ${FPIDIR}/ncpprint ${SPOOLDIR}/acct" + bestpath="$bestpath | ${FPIDIR}/smbprint ${SPOOLDIR}/acct" + elif [ "$PRINTER_TYPE" = "ATALK" ]; then + PNAME="`cat ${SPOOLDIR}/.paprc`" + bestpath="$bestpath | /usr/bin/pap -p $PNAME" fi if [ "$DEBUG_FILTER" != "" ]; then @@ -367,7 +368,7 @@ # # run the command! # - eval $bestpath 2>/dev/null + eval $bestpath # #
Thanks, I've added something similar to the current CVS. Your patch in its original form is broken because it breaks NCP printing.