/usr/lib/cups/backend/roger-cups is in roger-router-cli 1.8.14-2+b3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
if [ $# -eq 0 ] ; then
# Device Discovery
echo "file roger-cups:/ \"Unknown\" \"Tabos.org Roger Router Fax Printer\""
exit 0 # CUPS_BACKEND_OK
fi
RNAME="$2-Fax-ID$1"
SPOOL_DIR="/var/spool/roger"
if [ $# -eq 6 ]; then
cp "$6" "$SPOOL_DIR/$RNAME.tmp" || exit 1 # CUPS_BACKEND_FAILED
else
cat > "$SPOOL_DIR/$RNAME.tmp" || exit 1 # CUPS_BACKEND_FAILED
fi
chmod 660 "$SPOOL_DIR/$RNAME.tmp"
mv "$SPOOL_DIR/$RNAME.tmp" "$SPOOL_DIR/$RNAME"
exit 0 # CUPS_BACKEND_OK
|