NetBSD/share/sushi/system/mailerconf/script1

33 lines
546 B
Plaintext
Raw Normal View History

#!/bin/sh
# $NetBSD: script1,v 1.2 2001/04/23 09:07:49 garbled Exp $
BIGLIST="exim postfix-current sendmail88"
grep sendmail/sendmail /etc/mailer.conf >/dev/null
STATA="$?"
if [ "$STATA" = "0" ]; then
echo "sendmail"
echo "postfix"
fi
grep postfix/sendmail /etc/mailer.conf >/dev/null
STATB="$?"
if [ "$STATB" = "0" ]; then
echo "postfix"
echo "sendmail"
fi
if [ "$STATA" != "0" -a "$STATB" != "0" ]; then
echo "sendmail"
echo "postfix"
fi
for i in $BIGLIST
do
pkg_info -e $i >/dev/null
if [ "$?" = "0" ]; then
echo "$i"
fi
done