#!/bin/sh
if [ "$1" = "remove" ]; then
	echo "Removing MediaPortal Plugin from the system ..."
	rm -rf /usr/lib/enigma2/python/Plugins/Extensions/MediaPortal > /dev/null 2>&1
else
	find /usr/lib/enigma2/python/Plugins/Extensions/MediaPortal -type f -name "*.pyo" -exec rm -f {} \; > /dev/null 2>&1
fi
exit 0
