-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from wistron-corporation/op940-disableETH1
meta-ibm: Dynamically disable eth1.service
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
meta-ibm/meta-witherspoon/recipes-phosphor/network/network/disableETH1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
SubModel=($(busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/bmc xyz.openbmc_project.Inventory.Decorator.Asset SubModel)) | ||
echo "SubModel="${SubModel[1]} | ||
|
||
if [ "${SubModel[1]}" = '"ETH"' ] | ||
then | ||
echo "SubModel="${SubModel[1]}" was detected, so first-boot-set-mac@eth1.service is disabled" | ||
systemctl disable first-boot-set-mac@eth1.service | ||
fi |
14 changes: 14 additions & 0 deletions
14
meta-ibm/meta-witherspoon/recipes-phosphor/network/network/ncsi-netlink-mowgli.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Stop the ethernet link failover | ||
After=op-vpd-parser.service | ||
|
||
[Service] | ||
Restart=no | ||
ExecStart=/usr/bin/env ncsi-netlink --set -x 2 -p 0 -c 0 | ||
ExecStartPost=sh /usr/bin/disableETH1.sh | ||
SyslogIdentifier=disableETH1.sh | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters