#!/bin/bash

USERID=`id -u`
if [ "$USERID" != "0" ]; then
    echo "Please run this script with a sudo"
    exit 1
fi

echo "Uninstalling HCP client..."

killall hcpclient
launchctl stop com.everyoneprint.hcpclientservice
launchctl unload /Library/LaunchDaemons/com.everyoneprint.hcpclientservice.plist
rm -rf /Library/LaunchDaemons/com.everyoneprint.hcpclientservice.plist
rm -rf /usr/libexec/cups/backend/hcpportmon
rm -rf /Applications/hcpclient.app

echo "Uninstalling HCP client...done"

