s6-netdev/generic.sh

15 lines
354 B
Bash
Executable File

#!/bin/sh
. "$(dirname -- "$0")/netdev.sh"
new_if_phys "eth0"
IFACE="br0"
new_if_bridge "$IFACE"
bridge_property 'stp_state' "$IFACE"
bridge_property 'mcast_router' "$IFACE"
bridge_property 'mcast_snooping' "$IFACE" '0' ''
bridge_property 'mcast_querier' "$IFACE"
bridge_property 'mcast_mld_version' "$IFACE" '2' ''
new_if_slave "$IFACE" "eth0"