#! /bin/sh
#
-# $Id: add_netatalk_printer,v 1.5 2001-08-09 20:42:19 srittau Exp $
+# $Id: add_netatalk_printer,v 1.7 2003-02-23 03:16:34 srittau Exp $
#
# A lovely script to add netatalk printers
#
NETATALKHOME=${NETATALKHOME:-$RUNHOME}
export NETATALKHOME
-PATH=/bin:${PATH}:${NETATALKHOME}/bin:${NETATALKHOME}/etc:${NETATALKHOME}/etc/filters:/usr/lib:/usr/sbin
+PATH=/bin:${PATH}:${NETATALKHOME}/bin:${NETATALKHOME}/etc:${NETATALKHOME}/libexec:/usr/lib:/usr/sbin
if [ ! -x ${NETATALKHOME}/bin/pap ]; then
echo "OOPS: I don't see ${NETATALKHOME}/bin/pap ,"
echo ""
echo "Looking for LaserWriters in Zone ${ZONE} ..."
-$NETATALKHOME/bin/nbplkup ":LaserWriter@${ZONE}"
+${NETATALKHOME}/bin/nbplkup ":LaserWriter@${ZONE}"
echo ""
echo "Enter AppleTalk printer name: \c"
echo "checking nbplkup ${DEST}:LaserWriter@${ZONE}"
echo ""
-TestDEST=`$NETATALKHOME/bin/nbplkup "${DEST}:LaserWriter@${ZONE}"`
+TestDEST=`${NETATALKHOME}/bin/nbplkup "${DEST}:LaserWriter@${ZONE}"`
echo "${TestDEST}"
echo ""
Printer types: Netatalk
Printers: any
Filter type: fast
-Command: ${NETATALKHOME}/etc/filters/ifpap 2>&1 > /dev/null
+Command: ${NETATALKHOME}/libexec/ifpap 2>&1 > /dev/null
EOF
chown lp:lp /etc/lp/fd/netatalk.fd
chmod 664 /etc/lp/fd/netatalk.fd
Printer types: Netatalk-R
Printers: any
Filter type: fast
-Command: "/usr/lib/lp/postscript/postreverse | ${NETATALKHOME}/etc/filters/ifpap 2>&1 >/dev/null"
+Command: "/usr/lib/lp/postscript/postreverse | ${NETATALKHOME}/libexec/ifpap 2>&1 >/dev/null"
EOF
chown lp:lp /etc/lp/fd/netatalk-r.fd
chmod 664 /etc/lp/fd/netatalk-r.fd