mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 23:02:40 +00:00
This adds the mstpd package, a daemon implementing RSTP and MSTP protocols in place of the kernel STP implementation. Signed-off-by: Willy Tu <wltu@google.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 lines
300 B
Bash
19 lines
300 B
Bash
#!/bin/sh
|
|
if [ "$#" -lt 2 ]; then
|
|
echo "Missing args: bridge-stp <bridge> <start|stop>" >&2
|
|
exit 1
|
|
fi
|
|
case "$2" in
|
|
start)
|
|
/usr/sbin/mstpctl addbridge "$1"
|
|
exit
|
|
;;
|
|
stop)
|
|
/usr/sbin/mstpctl delbridge "$1"
|
|
exit
|
|
;;
|
|
*)
|
|
echo "Invalid operation: $2" >&2
|
|
exit 1
|
|
esac
|