From a1196258609150471b657df24e61934f28977380 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 8 Feb 2021 20:13:19 -0800 Subject: meta-google: ncsid-config: Error for missing interface Change-Id: Ifeb48720421e13f9313f056f8c15232982824daa Signed-off-by: William A. Kennington III --- meta-google/recipes-google/ncsi/ncsid-config.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-google/recipes-google') diff --git a/meta-google/recipes-google/ncsi/ncsid-config.bb b/meta-google/recipes-google/ncsi/ncsid-config.bb index 17a88f17c..e5d77761a 100644 --- a/meta-google/recipes-google/ncsi/ncsid-config.bb +++ b/meta-google/recipes-google/ncsi/ncsid-config.bb @@ -14,6 +14,11 @@ RDEPENDS_${PN} += "ncsid" FILES_${PN} += "${systemd_unitdir}" do_install_append() { + if [ -z "${NCSID_IF_NAME}" ]; then + echo "Missing NCSID_IF_NAME" >&2 + exit 1 + fi + install -d -m0755 ${D}${sysconfdir}/sysctl.d echo "net.ipv6.conf.${NCSID_IF_NAME}.accept_dad=0" \ >>${D}${sysconfdir}/sysctl.d/25-nodad.conf -- cgit v1.2.3