#!/bin/sh 

# 4665091

cd "$3/System/Library/LaunchDaemons"
ls | sed 's,\.plist$,,g' | while read
do
	if [ -e "$3/System/Library/LaunchDaemons/${REPLY}.plist" ] ; then
		var=`defaults read "$3/System/Library/LaunchDaemons/${REPLY}" Disabled 2>/dev/null`
		if [ $? != 0 ] || [ "$var" == "0" ] ; then
			/usr/bin/touch "${INSTALLER_TEMP}/${REPLY}.enabled"
		fi
	fi
done
