#!/bin/bash
# VLAN Interface Configuration System
#
# This software may be freely redistributed under the terms of the GNU
# public license.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# This script was adapted by: | Pascal DeMilly
# based on ifdown-cipcb       | NGSI
#                             | mailto:list.vlan@newgenesys.com

PATH=/sbin:/usr/sbin:/bin:/usr/bin

cd /etc/sysconfig/network-scripts
. network-functions

CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$1
source_config

/etc/sysconfig/network-scripts/ifdown-post ${CONFIG}
vconfig rem $DEVICE
