diff options
author | John Wang <wangzqbj@inspur.com> | 2019-06-20 10:15:53 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-06-21 14:52:11 +0300 |
commit | 5ffc460d7c7fb99fb7ef0a04c469dbf528dc0f31 (patch) | |
tree | ca2e034a9e17362da46068cb126a07cea7f33d78 /meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service | |
parent | 22e41cc9e625566a3d402285de7615cea49c3775 (diff) | |
download | openbmc-5ffc460d7c7fb99fb7ef0a04c469dbf528dc0f31.tar.xz |
fp5280g2: Add fan cooling type service
Configure phosphor-cooling-type as air-cooled,since
fp5280g2 is an air-cooled machine.
Tested: Verified that the AirCooled property is true.
busctl get-property xyz.openbmc_project.Inventory.Manager
/xyz/openbmc_project/inventory/system/chassis
xyz.openbmc_project.Inventory.Decorator.CoolingType AirCooled
(From meta-inspur rev: 443c6d00a8bab54b0b7081fb7368bfb45029a1a2)
Signed-off-by: John Wang <wangzqbj@inspur.com>
Change-Id: I4de4faf7a338165069fc44bbdfb73c1618838021
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service')
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service b/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service new file mode 100644 index 000000000..9232b13fc --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Phosphor Cooling Type +Wants=mapper-wait@-xyz-openbmc_project-inventory.service +After=mapper-wait@-xyz-openbmc_project-inventory.service +ConditionPathExists={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf +ExecStart=/usr/bin/env phosphor-cooling-type ${{OBJPATH}} ${{AIR}} +SyslogIdentifier=phosphor-cooling-type + +[Install] +RequiredBy=multi-user.target |