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