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

LocalDisplayScript="local_display_service.sh"
SurveilScrPath="/var/packages/SurveillanceStation/target/scripts"
NVRScriptPath=$SurveilScrPath/$LocalDisplayScript

RemoveStopNVR() {
	if [ -f $NVRScriptPath ]; then
		$NVRScriptPath unload
	fi
}

RemoveStopNVR

if [ -z "$SYNOPKG_PKGNAME" ]; then
	PACKAGE_NAME="SurveillanceStation"
else
	PACKAGE_NAME=$SYNOPKG_PKGNAME
fi

exit 0
