ifconfig bridge0 adds ixv0
#!/bin/shbridges="bridge0"bridge0="ixv0 vlan01 vlan02 vlan03"for BR in ${bridges}; do BRI=$(eval "echo \${$BR}") for IF in ${BRI}; do ALREADY_ADDED=$(/sbin/ifconfig ${BR} | grep ${IF}) if [ -z "${ALREADY_ADDED}" ]; then echo "adding ${IF} to ${BR}" /sbin/ifconfig ${BR} addm ${IF} fi donedone