From ff69fd0f08a9e0d9c28a3345076dd947e1de6bf2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 31 Jan 2003 21:28:49 +0000 Subject: 802.1Q VLAN support (, #82593) --- sysconfig/network-scripts/ifdown | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysconfig/network-scripts/ifdown') diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 992fd5ae..29fb9674 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -122,4 +122,14 @@ if [ "$retcode" = 0 ] ; then # the interface went down. 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 + [ -f /proc/net/vlan/${DEVICE} ] && { + /sbin/vconfig rem ${DEVICE} + retcode=$? + } + fi +fi + exit $retcode -- cgit