#! /bin/sh

# This uninstalls the privileged helper tool used by RPCEmu's networking code.  It's necessary to run this as part of your "clean" cycle testing to ensure that an old version is not run.

companyID=org.devrx.RPCEmu

sudo launchctl unload -w /Library/LaunchDaemons/$companyID.plist
sudo rm /Library/LaunchDaemons/$companyID.plist
sudo rm /Library/PrivilegedHelperTools/$companyID
sudo rm /var/run/$companyID.socket
echo
echo Did unload or remove $companyID files from system
echo unless errors above indicated that some items did not exist.
