summaryrefslogtreecommitdiff
path: root/meta-google/recipes-extended/networking/files/bridge-stp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-google/recipes-extended/networking/files/bridge-stp')
-rw-r--r--meta-google/recipes-extended/networking/files/bridge-stp49
1 files changed, 18 insertions, 31 deletions
diff --git a/meta-google/recipes-extended/networking/files/bridge-stp b/meta-google/recipes-extended/networking/files/bridge-stp
index c874f4420..59c5786b7 100644
--- a/meta-google/recipes-extended/networking/files/bridge-stp
+++ b/meta-google/recipes-extended/networking/files/bridge-stp
@@ -1,31 +1,18 @@
-PR = "r1"
-PV = "0.1+git${SRCPV}"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-SRC_URI = "git://github.com/yrutschle/sslh"
-SRCREV = "de8e5725c27ba6941f47254e6fcb485e94f2de35"
-S = "${WORKDIR}/git"
-
-inherit perlnative
-
-DEPENDS += "conf2struct-native"
-DEPENDS += "libbsd"
-DEPENDS += "libcap"
-DEPENDS += "libconfig"
-DEPENDS += "systemd"
-DEPENDS += "pcre"
-
-EXTRA_OEMAKE += "DESTDIR=${D}"
-EXTRA_OEMAKE += "PREFIX=${prefix}"
-EXTRA_OEMAKE += "USELIBCAP=1"
-EXTRA_OEMAKE += "USELIBBSD=1"
-EXTRA_OEMAKE += "USESYSTEMD=1"
-
-do_compile() {
- oe_runmake
-}
-
-do_install() {
- oe_runmake install
-}
+#!/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