diff options
Diffstat (limited to 'meta-oe/recipes-extended/networking/mstpd/bridge-stp')
-rw-r--r-- | meta-oe/recipes-extended/networking/mstpd/bridge-stp | 18 |
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 | ||
2 | if [ "$#" -lt 2 ]; then | ||
3 | echo "Missing args: bridge-stp <bridge> <start|stop>" >&2 | ||
4 | exit 1 | ||
5 | fi | ||
6 | case "$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 | ||
18 | esac | ||