aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-03-30 16:48:29 +0000
committerBill Nottingham <notting@redhat.com>2005-03-30 16:48:29 +0000
commit0b32aa5b7c6968b12113a82093430b933215b2a6 (patch)
tree2d6fc8688e0620abc10b9b4482029585718ce64c /sysconfig/network-scripts/ifdown-eth
parentd381a63a7e987352ac7900708e0d1c27d2bdc8ac (diff)
downloadinitscripts-0b32aa5b7c6968b12113a82093430b933215b2a6.tar
initscripts-0b32aa5b7c6968b12113a82093430b933215b2a6.tar.gz
initscripts-0b32aa5b7c6968b12113a82093430b933215b2a6.tar.bz2
initscripts-0b32aa5b7c6968b12113a82093430b933215b2a6.tar.xz
initscripts-0b32aa5b7c6968b12113a82093430b933215b2a6.zip
handle alternate VLAN naming schemes (#115001)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index a9570c01..3ad86125 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -112,7 +112,8 @@ fi
if [ -n "$VLAN" -a -x /sbin/vconfig ]; then
# 802.1q VLAN
- if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' ; then
+ if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' \
+ || echo ${DEVICE} | LANG=C egrep -q 'vlan[0-9][0-9]?[0-9]?[0-9]?' ; then
[ -f /proc/net/vlan/${DEVICE} ] && {
/sbin/vconfig rem ${DEVICE}
}