aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-post
blob: bf1c0c187d97bd44e83c5aa6b2971adba9763b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# This should be called whenever an interface goes down, not just when
# it is brought down explicitly.

cd /etc/sysconfig/network-scripts

# These are currently unused.
# CONFIG=$1
# . network-functions
# source_config

# Notify programs that have requested notification
( cd /var/run/netreport || exit
  for i in * ; do
    [ -f $i ] && \
      kill -SIGIO $i >/dev/null 2>&1 || \
        rm -f $i >/dev/null 2>&1
  done
)

exit 0