#!/bin/sh
# Copyright (c) 2000-2011 Synology Inc. All rights reserved.

SERVICETOOL="/usr/syno/bin/servicetool"

remove_port_setting()
{
	# remove port-forwarding config file
	${SERVICETOOL} --remove-configure-file --package synoitunes_port
}

remove_synosdk_servicehook_plugin()
{
	local destservicecommonfile="/usr/local/libexec/iTunesServiceCommon.sh"
	local destservicefile="/usr/local/libexec/service/synoitunes_service.sh"

	rm -f ${destservicecommonfile} ${destservicefile}
}

remove_port_setting
remove_synosdk_servicehook_plugin

exit 0
