From: Michael Tremer Date: Fri, 25 May 2012 12:06:57 +0000 (+0000) Subject: bridge-stp: Update script to work with newer versions of mstpd. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cf2e1dd89c3da3a128b91cfa91b1092849c97fb;p=people%2Fstevee%2Fnetwork.git bridge-stp: Update script to work with newer versions of mstpd. --- diff --git a/bridge-stp b/bridge-stp index f668ae2a..85c25316 100755 --- a/bridge-stp +++ b/bridge-stp @@ -19,11 +19,11 @@ # # ############################################################################### -. /lib/network/functions - # Change LOG_FACILITY that we will find our messages in syslog. LOG_FACILITY=$(basename ${0}) +. /usr/lib/network/functions + zone=${1} action=${2} @@ -50,11 +50,11 @@ fi case "${action}" in start) log DEBUG "Enabling STP for zone '${zone}'." - exec mstpctl notify-daemon-that-stp-is-on ${zone} + exec mstpctl addbridge ${zone} ;; stop) log DEBUG "Disabling STP for zone '${zone}'." - exec mstpctl notify-daemon-that-stp-is-off ${zone} + exec mstpctl delbridge ${zone} ;; *) log ERROR "Unknown action given: ${action}."