Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/intesco.ru/d59ed/
Upload File :
Current File : /var/www/iplanru/data/www/intesco.ru/d59ed/ip-down.d.tar

sendmail000066600000002071150771277340006304 0ustar00#!/bin/sh
#
# This script is called when ppp disconnects from the network.
#		 
# Here is where we'll stop sendmail if needed
#
# Written By Richard Nelson <cowboy@debian.org>
#
# NOTE: The following lines (without the #) must be in /etc/mail/sendmail.mc:
# include(`/etc/mail/dialup.m4')dnl
# include(`/etc/mail/provider.m4')dnl
#

# These variables are for the use of the scripts run by run-parts
#PPP_IFACE="$1";
#PPP_TTY="$2";
#PPP_SPEED="$3";
#PPP_LOCAL="$4";
#PPP_REMOTE="$5";
#PPP_IPPARAM="$6";

if [ ! -z "$PPP_LOCAL" ]; then
	addr=$PPP_LOCAL;
	provider=$PPP_IPPARAM;
	iface=$PPP_IFACE;
else
	addr=$1;
	provider=$2;
	iface=$3;
	fi;

if [ -z "$provider" ]; then
	exit 0;
	fi;

# Bring in some script functions to handle dynamic configuration
. /usr/share/sendmail/dynamic;

# Note the interface that just changed
update_interface "$iface" "STOP";

# If anything has been changed, update sendmail.cf and reload
# Actually, we'll delay the reload because we'll be hit in a moment
# to handle the change by /etc/network/if-up.d/sendmail
update_sendmail "ppp" Delayed;

exit 0;
fetchmail000066600000000544150771277340006447 0ustar00#!/bin/sh
#
# Default fetchmail ip-down script (/etc/ppp/ip-down.d/fetchmail)
#
# Remove the "exit 0" line if you want only want to run fetchmail when the
# PPP link is up.
#

exit 0

if [ -x /etc/init.d/fetchmail ]; then
	if [ -x /usr/sbin/invoke-rc.d ]; then
		invoke-rc.d --quiet fetchmail stop || true
	else
		/etc/init.d/fetchmail stop || true
	fi
fi
clamav-freshclam-ifupdown000066600000003215150771277340011547 0ustar00#!/bin/sh
# 2004-01-25, Thomas Lamy <thomas.lamy@in-online.net>
# From Magnus Ekdahl's <magnus@debian.org> clamav-freshclam-handledaemon(8)

set -e

[ -e /var/lib/clamav/interface ] || exit 0

INIT=/etc/init.d/clamav-freshclam
CLAMAV_CONF_FILE=/etc/clamav/clamd.conf
FRESHCLAM_CONF_FILE=/etc/clamav/freshclam.conf

INTERNETIFACE=`cat /var/lib/clamav/interface`

if grep -q freshclam /proc/*/stat 2>/dev/null; then
  IS_RUNNING=true
else
  IS_RUNNING=false
fi

# $IFACE is set by ifup/down, $PPP_IFACE by pppd 
[ -n "$PPP_IFACE" ] && IFACE=$PPP_IFACE

# This is sloppy - woody's pppd exports variables, while sid's passes them as 
# arguments and exports them.

if [ "$1" = "$IFACE" ]; then # We're called by sid's pppd
  shift 6                    # and we already know the interface
fi                           # Dump the arguments passed.

if [ -z "$1" ]; then
  case $(dirname "$0") in
    */if-up.d|*/ip-up.d)
    # Short circuit and exit early if freshclam is already running
    [ "$IS_RUNNING" = 'true' ] && exit 0
    for interface in $INTERNETIFACE; do
      if [ "$interface" = "$IFACE" ]; then
	FMODE=start
	break
      else
	FMODE=skip
      fi
    done
    ;;
    */if-down.d|*/ip-down.d)
    # Short circuit and exit early if freshclam is not already running
    [ "$IS_RUNNING" = 'false' ] && exit 0
    for interface in $INTERNETIFACE; do
      if [ "$interface" = "$IFACE" ]; then
	FMODE=stop
	break
      else
	FMODE=skip
      fi
    done
    ;;
    *)
    FMODE=skip
    ;;
  esac
else
  FMODE="$1"
fi

case "$FMODE" in
  start|stop)
  IFACE="$IFACE" $INIT $FMODE
  ;;
  skip)
  ;;
  *)
  echo "Usage: $0 {start|stop|skip}" >&2
  exit 1
  ;;
esac

exit 0

bind9000066600000000441150771277340005514 0ustar00#!/bin/sh -e
# Called when an interface disconnects
# Written by LaMont Jones <lamont@debian.org>

# kick named as needed

# If /usr isn't mounted yet, silently bail.
if [ ! -d /usr/sbin ]; then
	exit 0
fi

# if named is running, reconfig it.
rndc reconfig >/dev/null 2>&1 || true

exit 0