From ced9dffda28f1ec2b060f3e419cf3c6b964b03a1 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Tue, 16 Sep 1997 14:12:05 +0000 Subject: Initial revision --- sysconfig/network-scripts/ifdown-post | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 sysconfig/network-scripts/ifdown-post (limited to 'sysconfig/network-scripts/ifdown-post') diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post new file mode 100755 index 00000000..cb7ce8c1 --- /dev/null +++ b/sysconfig/network-scripts/ifdown-post @@ -0,0 +1,18 @@ +#!/bin/sh +# This should be called whenever an interface goes down, not just when +# it is brought down explicitly. + +cd /etc/sysconfig/network-scripts + +. $1 + +# 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 -- cgit