diff options
| author | Bill Nottingham <notting@redhat.com> | 2005-03-30 16:49:09 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2005-03-30 16:49:09 +0000 |
| commit | 132718bb1b966d026791bb970f3258753aec9752 (patch) | |
| tree | 85acf7c01456b79565ee6418b0e1e87f26dde9e4 /sysconfig/network-scripts/ifdown | |
| parent | 95fc0d1440cefbb0a8ae1df0f542cc56d6890250 (diff) | |
handle alternate vlan naming schemes (#115001)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
| -rwxr-xr-x | sysconfig/network-scripts/ifdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index a28e9af2..170b1504 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -151,7 +151,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} } |
