#!/bin/sh
#
# Note: This is only a wrapper for driverless-fax, the real work is done by
# driverless
#
# (C) 2020 Nidhi Jain
# (C) 2012-2020 Till Kamppeter <till.kamppeter@gmail.com>
#
# Licensed under Apache License v2.0.  See the file "LICENSE" for more
# information.
#

if [ $# -eq "0" ]; then
    DEVICE_TYPE=FAX /usr/local/libexec/cups/backend/driverless
    elif [ $# -eq "1" ]; then
        DEVICE_TYPE=FAX /usr/local/libexec/cups/driver/driverless "$1"
    elif [ $# -eq "2" ]; then
        DEVICE_TYPE=FAX /usr/local/libexec/cups/driver/driverless "$1" "$2"
    else
        echo "ERROR: Too many arguments"
fi
