#!/bin/sh

echo "VENDOR THERMAL PRINTER"
echo "VENDOR THERMAL PRINTER CUPS Driver 1.0.0 Removing Start"
echo "---------------------------------------"
echo ""

if [ -z $1 ]
then
	echo "Please Set Destination Directory in order for us to remove ppd files"
	echo "(ex)"
	echo "#>./remove.ubuntu /usr/share/ppd/gutenprint/5.0/en [Enter]"
	echo ""
	exit 1
fi

if [ -e /usr/lib/cups/filter/rastertovtp ]
then 
	echo "Removing rastertovtp"
	rm -f /usr/lib/cups/filter/rastertovtp
fi

if [ -d /usr/share/cups/model/VendorTP ]
then
	echo "Removing dir .../cups/model/VendorTP"
	rm -rf /usr/share/cups/model/VendorTP
else
	echo "Removing ppd files...."
	rm -rf $1/VendorTP.ppd.gz
fi

echo "Removing Complete!!!"
echo ""

