#!/bin/sh

route del default

# Test if second NIC exists.
eth1_exists=`grep eth1 /proc/ioports|grep eth1|wc -l`

#
# Two NIC configuration.
#
if [ $eth1_exists -eq 1 ]
then
	ifconfig br0 down

	brctl delif br0 eth0
	brctl delif br0 eth1
	brctl delbr br0

	sleep 1
fi
