aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2010-05-12 14:00:11 +0200
committerBill Nottingham <notting@redhat.com>2010-05-13 12:40:07 -0400
commita8b4a9d667c0b07eea7cecddd87dabe35cc2dc74 (patch)
tree51fe225d5ef65fdbbfa10379ef92aad0b410ef97 /sysconfig/network-scripts/ifdown-eth
parent5b4fa92a71a055172edeb0eacb3aa7462722eac4 (diff)
downloadinitscripts-a8b4a9d667c0b07eea7cecddd87dabe35cc2dc74.tar
initscripts-a8b4a9d667c0b07eea7cecddd87dabe35cc2dc74.tar.gz
initscripts-a8b4a9d667c0b07eea7cecddd87dabe35cc2dc74.tar.bz2
initscripts-a8b4a9d667c0b07eea7cecddd87dabe35cc2dc74.tar.xz
initscripts-a8b4a9d667c0b07eea7cecddd87dabe35cc2dc74.zip
use ip command for vlan instead of vconfig
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index 3399ee3c..19fc1f12 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -138,12 +138,12 @@ if [ "$retcode" = 0 ] ; then
# the interface went down.
fi
-if [ -n "$VLAN" ] && [ -x /sbin/vconfig ]; then
+if [ -n "$VLAN" ]; then
# 802.1q VLAN
if echo ${DEVICE} | LANG=C grep -Ev '(:)' | LANG=C grep -Eq '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' \
|| echo ${DEVICE} | LANG=C grep -Eq 'vlan[0-9][0-9]?[0-9]?[0-9]?' ; then
[ -f /proc/net/vlan/${DEVICE} ] && {
- /sbin/vconfig rem ${DEVICE}
+ ip link delete ${DEVICE} type vlan
}
fi
fi