diff options
author | Petr Lautrbach <plautrba@redhat.com> | 2010-05-12 14:00:11 +0200 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-05-13 12:48:47 -0400 |
commit | 286e6430ce2b1873e319e5edfa08c45806fbedab (patch) | |
tree | d763ee1d96f2e43a350bae67c43ca78915c1112d /sysconfig/network-scripts/ifdown-eth | |
parent | eaeb72231350ed442979a7616cf547859a885609 (diff) | |
download | initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.gz initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.bz2 initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.xz initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.zip |
use ip command for vlan instead of vconfig
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-eth | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index 1ca6a6f2..53c70238 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" -a -x /sbin/vconfig ]; then +if [ -n "$VLAN" ]; 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]?' \ || 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} + ip link delete ${DEVICE} type vlan } fi fi |