#!/bin/sh

# NOTE: This script is intended to run in conjunction with qemu-ifup
#       which uses the same logic to find your bridge/switch

switch=$(ip route list | awk '/^default / { print $5 }')

brctl delif $switch $1
ifconfig $1 0.0.0.0 down
