#!/bin/sh 

if [ -e "$3/System/Library/LaunchDaemons/com.apple.ODSAgent.plist" ] ; then
	var=`defaults read "$3/System/Library/LaunchDaemons/com.apple.ODSAgent" Disabled 2>/dev/null`
	if [ $? != 0 ] || [ "$var" == "0" ] ; then
		/usr/bin/touch "${INSTALLER_TEMP}/com.apple.ODSAgent.enabled"
		if [ "$3" == "/" ] ; then
			/sbin/service com.apple.ODSAgent stop
		fi
	fi
fi
