s6-netdev/generic.sh

15 lines
365 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"
if_bridge_property 'stp_state' "$IFACE"
if_bridge_property 'mcast_router' "$IFACE"
if_bridge_property 'mcast_snooping' "$IFACE" '0' ''
if_bridge_property 'mcast_querier' "$IFACE"
if_bridge_property 'mcast_mld_version' "$IFACE" '2' ''
if_slave "$IFACE" "eth0"