Patching Apache Karaf with a shell console fix to avoid thread leak.
Change-Id: I27e8fbaf443391a51b40c35639a39a5f38aecf31
diff --git a/tools/package/onos-prep-karaf b/tools/package/onos-prep-karaf
index 718630c..a466858 100755
--- a/tools/package/onos-prep-karaf
+++ b/tools/package/onos-prep-karaf
@@ -9,6 +9,7 @@
KARAF_TAR=$2
ONOS_VERSION=$3
BRANDING=$4
+KARAF_PATCHES=$5
#FIXME karaf version
KARAF_VERSION="3.0.8"
ONOS_SECURITY_MODE="false"
@@ -21,6 +22,8 @@
# rename path name to match what was distributed with vicci
mv "$(ls -d apache*)" "apache-karaf-$KARAF_VERSION" || true
+tar xf $KARAF_PATCHES
+
# Unroll the Apache Karaf bits, prune them and make ONOS top-level directories.
KARAF_DIR=$(ls -d apache*)
rm -rf $KARAF_DIR/demos