meta-google: gbmc-net-common: Add common RA script

This consolidates all of the discrete code for different RA handling
logic into one place.

Change-Id: I8a697c198bd49e7c3d2aabcea78e1d0a8d073753
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-net-common.bb b/meta-google/recipes-google/networking/gbmc-net-common.bb
new file mode 100644
index 0000000..1f709b4
--- /dev/null
+++ b/meta-google/recipes-google/networking/gbmc-net-common.bb
@@ -0,0 +1,25 @@
+SUMMARY = "gBMC common networking components"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+SRC_URI += " \
+  file://gbmc-ra.sh \
+  "
+S = "${WORKDIR}"
+
+FILES:${PN} += " \
+  ${datadir}/ \
+  "
+
+RDEPENDS:${PN}:append = " \
+  bash \
+  network-sh \
+  ndisc6-rdisc6 \
+  "
+
+do_install() {
+  install -d -m0755 ${D}${datadir}
+  install -m0644 ${S}/gbmc-ra.sh ${D}${datadir}/
+}
+