From 4cf2e1dd89c3da3a128b91cfa91b1092849c97fb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 25 May 2012 12:06:57 +0000 Subject: [PATCH] bridge-stp: Update script to work with newer versions of mstpd. --- bridge-stp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}." -- 2.47.3