- fi
- # This should match CentOS, RHEL and other RHEL based distros that have yum as the primary package manager
- if command -v yum >/dev/null 2>&1; then
- if ! rpm -q foomatic-db-ppds >/dev/null 2>&1; then
- printerror "You don't seem to have the correct printer drivers installed, please run:"
- printerror " sudo yum install foomatic-db-ppds"
- printerror "first, or use the generic driver instead."
- exit 1
- else
- if [ "${Driver}" = "postscript" ]; then
- DriverPath="foomatic-db-ppds/Ricoh/PS/Ricoh-MP_C6003_PS.ppd.gz"
+ # This should match CentOS, RHEL and other RHEL based distros that have yum as the primary package manager
+ if command -v yum >/dev/null 2>&1; then
+ if ! sudo rpm -q foomatic-filters >/dev/null 2>&1; then
+ printerror "You don't seem to have the foomatic-filters package installed, please run:"
+ printerror " sudo yum install foomatic-filters"
+ printerror "first, or use the generic model instead."
+ exit 1
+ if ! sudo rpm -q foomatic-db-ppds >/dev/null 2>&1; then
+ printerror "You don't seem to have the correct printer drivers installed, please run:"
+ printerror " sudo yum install foomatic-db-ppds"
+ printerror "first, or use the generic model instead."
+ exit 1