# $SunOS: INSTALL,v 1.0 2010/06/30 22:09:11 corvax Exp $ case ${STAGE} in POST-DEINSTALL) JOBINFO=`/bin/launchctl list org.exim.exim 2>/dev/null` EXITCODE=$? if [ ! -z "$JOBINFO" ] && [ $EXITCODE = 0 ] ; then # /bin/launchctl stop org.exim.exim for PLIST in /System/Library/LaunchDaemons/org.exim.exim.plist /Library/LaunchDaemons/org.exim.exim.plist ] ; do if [ -f $PLIST ] ; then echo "/bin/launchctl unload $PLIST" /bin/launchctl unload $PLIST echo "/bin/rm $PLIST" /bin/rm $PLIST fi done else LABEL=`/bin/launchctl list | /usr/bin/grep exim | /usr/bin/awk '{print $3}'` if [ ! -z "$LABEL" ] ; then /bin/launchctl stop $LABEL PLISTS=`/bin/ls -1d /System/Library/LaunchDaemons/$LABEL.plist /Library/LaunchDaemons/$LABEL.plist 2>/dev/null` [ -z "$PLISTS" ] && PLIST=`/bin/ls -1d /System/Library/LaunchDaemons/*exim*.plist /Library/LaunchDaemons/*exim*.plist 2>/dev/null` if [ ! -z "$PLISTS" ] ; then for PLIST in $PLISTS ; do if [ -f $PLIST ] ; then echo "/bin/launchctl unload $PLIST" /bin/launchctl unload $PLIST fi done fi fi fi ;; esac