summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/othermta
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-08-09 17:45:04 +0000
committergordon <gordon@FreeBSD.org>2002-08-09 17:45:04 +0000
commit338f3e58ec003e516fd682b6ed63c488c64538d8 (patch)
treec314c3f7aa4f105a94e0767eaa974209baca88c6 /etc/rc.d/othermta
parent07b40589c7c579eca437187a04406144308b7169 (diff)
downloadFreeBSD-src-338f3e58ec003e516fd682b6ed63c488c64538d8.zip
FreeBSD-src-338f3e58ec003e516fd682b6ed63c488c64538d8.tar.gz
Make the othermta script DTRT when an mta startup script is not specified.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
Diffstat (limited to 'etc/rc.d/othermta')
-rw-r--r--etc/rc.d/othermta5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.d/othermta b/etc/rc.d/othermta
index 774546f..05236a8 100644
--- a/etc/rc.d/othermta
+++ b/etc/rc.d/othermta
@@ -13,4 +13,7 @@
load_rc_config 'XXX'
-[ "${mta_start_script}" != "/etc/rc.sendmail" ] && sh ${mta_start_script}
+if [ -n "${mta_start_script}" ]; then
+ [ "${mta_start_script}" != "/etc/rc.sendmail" ] && \
+ sh ${mta_start_script} "$1"
+fi
OpenPOWER on IntegriCloud