3
# This script is called when a network device goes down.
5
# Here is where we'll stop sendmail if needed
7
# Written By Richard Nelson <cowboy@debian.org>
9
# NOTE: The following lines (without the #) must be in /etc/mail/sendmail.mc:
10
# include(`/etc/mail/dialup.m4')dnl
11
# include(`/etc/mail/provider.m4')dnl
14
# These variables are for the use of the scripts run by run-parts
19
if [ ! -z "$IFACE" ]; then
21
provider=$IF_PROVIDER;
29
if [ -z "$provider" ]; then
33
# Bring in some script functions to handle dynamic configuration
34
. /usr/share/sendmail/dynamic;
36
# Note the interface that just changed
37
update_interface "$iface" "STOP";
39
# If anything has been changed, update sendmail.cf and reload
40
update_sendmail "ifupdown";