#!/bin/sh

. /etc/init.d/utils

if [ ! -e /etc/default/softbridge/br0 ]; then
    error "br0 is not a bridge interface"
    exit 1
fi
ifconfig tap0 down
brctl delif br0 tap0

# call main down
/usr/local/sbin/www-scripts/openvpn/tunnel-down "0" "tap0" "client"
exit 0
