From 1d629df1423c64eb1569e98b6b2c2c3e6fbcc802 Mon Sep 17 00:00:00 2001 From: gordon Date: Thu, 12 Sep 2002 17:31:09 +0000 Subject: Fix sendmail to use checkyesno since rc.conf is no longer re'sourced from the debug statement. --- etc/rc.d/sendmail | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail index e8501f4..cfb38cd 100755 --- a/etc/rc.d/sendmail +++ b/etc/rc.d/sendmail @@ -87,16 +87,12 @@ case ${OSTYPE} in FreeBSD) required_files= - # I'd like to use checkyesno here, but for reason, sendmail_enable - # get's reset after run_rc_command - case ${sendmail_enable} in - [Nn][Oo]*) + if ! checkyesno sendmail_enable; then name="sendmail_submit" rcvar=`set_rcvar` start_cmd="${command} ${sendmail_submit_flags}" run_rc_command "$1" - ;; - esac + fi if ! checkyesno sendmail_outbound_enable; then name="sendmail_outbound" -- cgit v1.1