Setup NIC MCTP Endpoint after mctpd initialization
Since NIC's Entity Manager configuration cannot store information of
static EID for Yosemite4 platform, setup the NIC's MCTP Endpoint after
mctpd is successfully initilized if the corresponding slot is plugged
in.
Change-Id: Ida647d60d7ed72897f641dd9783f0105c2a5c0d5
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-networking/mctp/files/setup-static-endpoints.conf b/meta-facebook/meta-yosemite4/recipes-networking/mctp/files/setup-static-endpoints.conf
new file mode 100644
index 0000000..ad532c9
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-networking/mctp/files/setup-static-endpoints.conf
@@ -0,0 +1,8 @@
+[Unit]
+After=mctpd.service
+Requires=mctpd.service
+
+[Service]
+ExecStartPost=-/usr/share/mctp/setup-static-endpoints.sh
+Restart=always
+RestartSec=10