diff options
author | Matt Spinler <spinler@us.ibm.com> | 2021-09-29 00:08:04 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2021-09-30 17:45:25 +0300 |
commit | c184a0f08fbfbf94c84578a6390d5077f922413d (patch) | |
tree | 582a03e32b16497708d9d13cdbdaab19f7cc3e25 /meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh | |
parent | 59574596499bcf503efbeb74e379d86c76fca90b (diff) | |
download | openbmc-c184a0f08fbfbf94c84578a6390d5077f922413d.tar.xz |
ibm: Drop hwmon support for water cooled wspoon
There is an upcoming systemd change that doesn't handle what was being
done, which was to delay starting phosphor-hwmon from udev until the
chassis cooling type was on D-Bus.
This commit removes this method and goes down to a single hwmon config
file that only supports the air cooled system, which has 2 more fan
rotors than the water cooled one does.
This change also applies to the similar systems witherspoon-tacoma and
swift.
Resolves openbmc/phosphor-hwmon/#19.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ic4ed46a5bf310fb1fef8704dcafc0376c441f8c4
Diffstat (limited to 'meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh')
-rwxr-xr-x | meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh deleted file mode 100755 index 5eff17450..000000000 --- a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/start_max31785_hwmon.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# Copy in the correct MAX31785 phosphor-hwmon config file to use based on the -# WaterCooled property, and then start the hwmon service. - -# $1: The escaped OF_FULLNAME udev attribute for the MAX31785 - -base="/etc/default/obmc/hwmon/"$(systemd-escape -u "$1") -target=$base".conf" - -service=$(mapper get-service /xyz/openbmc_project/inventory/system/chassis) - -if [ $(busctl get-property $service \ - /xyz/openbmc_project/inventory/system/chassis \ - xyz.openbmc_project.Inventory.Decorator.CoolingType \ - WaterCooled | grep true | wc -l) != 0 ]; -then - source=$base'_water.conf' -else - source=$base'_air.conf' -fi - -cp $source $target - -instance='-'$1 -systemctl start xyz.openbmc_project.Hwmon@$instance.service |