From 5ffc460d7c7fb99fb7ef0a04c469dbf528dc0f31 Mon Sep 17 00:00:00 2001 From: John Wang Date: Thu, 20 Jun 2019 15:15:53 +0800 Subject: 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 Change-Id: I4de4faf7a338165069fc44bbdfb73c1618838021 Signed-off-by: Brad Bishop --- .../obmc/phosphor-fan/phosphor-cooling-type-0.conf | 2 ++ .../fans/phosphor-fan/phosphor-cooling-type@.service | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/obmc/phosphor-fan/phosphor-cooling-type-0.conf create mode 100644 meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan') diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/obmc/phosphor-fan/phosphor-cooling-type-0.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/obmc/phosphor-fan/phosphor-cooling-type-0.conf new file mode 100644 index 000000000..25a4ffc9b --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/fans/phosphor-fan/obmc/phosphor-fan/phosphor-cooling-type-0.conf @@ -0,0 +1,2 @@ +OBJPATH="--path=/system/chassis" +AIR="--air" 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 -- cgit v1.2.3