summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc25
1 files changed, 17 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 843e1ae..3b8440f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -591,14 +591,6 @@ case ${lpd_enable} in
;;
esac
-case ${sendmail_enable} in
-[Yy][Ee][Ss])
- if [ -r /etc/mail/sendmail.cf ]; then
- echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags}
- fi
- ;;
-esac
-
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
@@ -614,6 +606,23 @@ case ${usbd_enable} in
;;
esac
+if [ -r /etc/mail/sendmail.cf ]; then
+ case ${sendmail_enable} in
+ [Yy][Ee][Ss])
+ echo -n ' sendmail'
+ /usr/sbin/sendmail ${sendmail_flags}
+ ;;
+ *)
+ case ${sendmail_outbound_enable} in
+ [Yy][Ee][Ss])
+ echo -n ' sendmail'
+ /usr/sbin/sendmail ${sendmail_outbound_flags}
+ ;;
+ esac
+ ;;
+ esac
+fi
+
echo '.'
# Recover vi editor files.
OpenPOWER on IntegriCloud