From 42f10b3fe0fe9dbc2cb507103b7bccac4b284ddd Mon Sep 17 00:00:00 2001 From: Gordon Tetlow Date: Thu, 12 Sep 2002 17:31:09 +0000 Subject: [PATCH] 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 e8501f4f96e..cfb38cd493a 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"