]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifdown-post
- removed "scripts" method of executing external programs after uping
[projects/rc-scripts.git] / sysconfig / network-scripts / ifdown-post
CommitLineData
d29c401a 1#!/bin/sh
b0443108 2#
201c98b9 3# $Id: ifdown-post,v 1.10 2000/03/27 16:07:52 misiek Exp $
b0443108 4#
7742e157
AF
5# This should be called whenever an interface goes down, not just when
6# it is brought down explicitly.
7
201c98b9
AM
8run_down() { :; }
9
7742e157 10CONFIG=$1
f3002e12
JK
11. /etc/sysconfig/network
12. /etc/rc.d/init.d/functions
8b3e2b71 13. /etc/sysconfig/network-scripts/.functions
14
7742e157
AF
15source_config
16
97c76ad5
AM
17# full device name as specified by user
18FULLDEVNAME="$DEVICE"
19# type of device for example "dummy" or "eth"
20DEVICETYPE=`echo $FULLDEVNAME | sed "s/[0-9]*$//"`
21# name of real device ie. eth0 when eth0,eth0:1,eth0:alias
22DEVICE=`echo $FULLDEVNAME | sed 's/:.*//g'`
23
24if echo "$FULLDEVNAME" | grep -q ':' ; then
25 ISALIAS=yes
26else
27 ISALIAS=no
28fi
29
201c98b9
AM
30# execute run_up() function (if available in device configuration file)
31[ "$ISALIAS" = "no" ] && run_down
97c76ad5 32
7742e157
AF
33# Notify programs that have requested notification
34do_netreport
35
36exit 0
This page took 0.067784 seconds and 4 git commands to generate.