diff options
author | Bill Nottingham <notting@redhat.com> | 2003-09-09 04:47:02 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-09-09 04:47:02 +0000 |
commit | c91600dea4d59ce0812fe66e2688ad7f01e281a0 (patch) | |
tree | a17080dd8b57186dc24fec3b05b9da01e1b604f4 /sysconfig/network-scripts/ifdown | |
parent | 196aeeca3e1e15b24bd9b38af8eb9b159639d90b (diff) | |
download | initscripts-c91600dea4d59ce0812fe66e2688ad7f01e281a0.tar initscripts-c91600dea4d59ce0812fe66e2688ad7f01e281a0.tar.gz initscripts-c91600dea4d59ce0812fe66e2688ad7f01e281a0.tar.bz2 initscripts-c91600dea4d59ce0812fe66e2688ad7f01e281a0.tar.xz initscripts-c91600dea4d59ce0812fe66e2688ad7f01e281a0.zip |
bridging support (<dwmw2@redhat.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 65ef52e1..9622f0ca 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -44,6 +44,12 @@ if [ -x $OTHERSCRIPT ]; then exec $OTHERSCRIPT $CONFIG $2 fi +if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then + /sbin/ip link set ${DEVICE} down + /usr/sbin/brctl delif ${BRIDGE} ${DEVICE} + exit 0 +fi + . /etc/sysconfig/network # Check to make sure the device is actually up @@ -122,6 +128,10 @@ if [ "$retcode" = 0 ] ; then # the interface went down. fi +if [ "$TYPE" = "Bridge" -a -x /usr/sbin/brctl ]; then + /usr/sbin/brctl delbr ${DEVICE} +fi + if [ -n "$VLAN" -a -x /sbin/vconfig ]; then # 802.1q VLAN if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q 'eth[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' ; then |