diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2018-03-23 07:13:30 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-04-05 15:44:37 +0300 |
commit | b9bf9211e12ab52784ab026bffb6446ff3b12ce8 (patch) | |
tree | e213d77fecbad1506761709a11e51e7eb9a5a2e1 /meta-openbmc-machines/meta-openpower | |
parent | ca03bb91761fe43e75bc26828ce175288a626611 (diff) | |
download | openbmc-b9bf9211e12ab52784ab026bffb6446ff3b12ce8.tar.xz |
network: Add the ncsi-netlink service
This service file needs to be started only for
witherspoon.
This is used to stop the ethernet port failover
on the system.
Resolves openbmc/openbmc#2931
Change-Id: I0f144942df1d77de4d990a4aad8d9764d8455251
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower')
2 files changed, 15 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network.bbappend new file mode 100644 index 000000000..7e0dc2fcc --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SYSTEMD_SERVICE_${PN} += "ncsi-netlink.service" diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network/ncsi-netlink.service b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network/ncsi-netlink.service new file mode 100644 index 000000000..f49114dcb --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/network/network/ncsi-netlink.service @@ -0,0 +1,13 @@ +[Unit] +Description=Stop the ethernet link failover +Wants=xyz.openbmc_project.Network.service +After=xyz.openbmc_project.Network.service + +[Service] +Restart=no +ExecStart=/usr/bin/env ncsi-netlink --set -x 2 -p 0 -c 0 +SyslogIdentifier=ncsi-netlink +Type=oneshot + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |