diff --git a/netdev.sh b/netdev.sh index 166def3..73e696c 100755 --- a/netdev.sh +++ b/netdev.sh @@ -157,27 +157,37 @@ new_if_bridge() { new_link "$if" } -bridge_stp() { - local if="${1:?missing if}" - local state="${2:-1}" +bridge_property() { + local prop="${1:?missing prop}" + local if="${2:?missing if}" + local state="${3:-1}" + local downstate="${4-0}" - local sname="interface.$if.stp" + local sname="interface.$if.$prop" ifbundle "$if" "$sname" install -Dm644 <( - h_if "$if" + header_eb + header_if "$if" cat <