summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/networking/mstpd/bridge-stp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/networking/mstpd/bridge-stp')
-rw-r--r--meta-oe/recipes-extended/networking/mstpd/bridge-stp18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/networking/mstpd/bridge-stp b/meta-oe/recipes-extended/networking/mstpd/bridge-stp
new file mode 100644
index 000000000..59c5786b7
--- /dev/null
+++ b/meta-oe/recipes-extended/networking/mstpd/bridge-stp
@@ -0,0 +1,18 @@
1#!/bin/sh
2if [ "$#" -lt 2 ]; then
3 echo "Missing args: bridge-stp <bridge> <start|stop>" >&2
4 exit 1
5fi
6case "$2" in
7 start)
8 /usr/sbin/mstpctl addbridge "$1"
9 exit
10 ;;
11 stop)
12 /usr/sbin/mstpctl delbridge "$1"
13 exit
14 ;;
15 *)
16 echo "Invalid operation: $2" >&2
17 exit 1
18esac