diff --git a/share/sushi/system/mailerconf/script1 b/share/sushi/system/mailerconf/script1 index af478a8a5beb..d306c22c225a 100755 --- a/share/sushi/system/mailerconf/script1 +++ b/share/sushi/system/mailerconf/script1 @@ -1,18 +1,27 @@ #!/bin/sh -# $NetBSD: script1,v 1.1 2001/03/06 21:21:07 garbled Exp $ +# $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 -if [ "$?" = "0" ]; then +STATA="$?" +if [ "$STATA" = "0" ]; then echo "sendmail" echo "postfix" fi grep postfix/sendmail /etc/mailer.conf >/dev/null -if [ "$?" = "0" ]; then +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 @@ -20,3 +29,4 @@ do echo "$i" fi done +