]> git.ipfire.org Git - network.git/commitdiff
bridge-stp: Update script to work with newer versions of mstpd.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)
bridge-stp

index f668ae2a5280c9413cd0af95ef3a5def9e1509d7..85c25316b96a40ac9c2263768ca6c74639ddacf2 100755 (executable)
 #                                                                             #
 ###############################################################################
 
-. /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}."