From 85b20829069ae5869b3be00ee7fd3b45ccd32f11 Mon Sep 17 00:00:00 2001 From: garbled Date: Mon, 23 Apr 2001 09:07:49 +0000 Subject: [PATCH] Actually define $BIGLIST, and fix the logic a bit. --- share/sushi/system/mailerconf/script1 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 +