s6-netdev/generic.sh

15 lines
354 B
Bash
Raw Normal View History

2023-09-03 10:47:28 +00:00
#!/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"