#!/bin/sh IFACE="bridge0" BRIDGED="fxp0 rl0 wlan0 wlan1" STP="fxp rl0" echo "Config Bridge interface $IFACE ..." ifconfig $IFACE create for i in $BRIDGED; do ifconfig $IFACE addm $i done for i in $STP; do ifconfig $IFACE stp $i done ifconfig $IFACE up