#!/bin/bash
mkdir ./tmp
cd ./tmp
tar -zxpvf ../CJLZ600LE-CUPS-1.0-1.TAR.gz
tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz
tar -xvzf ./install.tar.gz 
rpm -ihv z600cups-1.0-1.i386.rpm --nodeps
cp /usr/share/cups/model/Lexmark-Z600-lxz600cj-cups.ppd.gz ./
rpm -e z600cups-1.0-1
gzip -d  ./Lexmark-Z600-lxz600cj-cups.ppd.gz
cp ./Lexmark-Z600-lxz600cj-cups.ppd ../
cd ../
rm -rf ./tmp
