summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-12-14 14:33:55 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-12-17 18:34:15 +0000
commit58238eb232bd3c89c28ffa842b1b588759885675 (patch)
treed4ba7db8bd561544933c996c8d71ff2e5d7546a4
parent838ccf62b75e32942cb4c397d43e5f6ff9aa8f5f (diff)
downloadtalos-openbmc-58238eb232bd3c89c28ffa842b1b588759885675.tar.gz
talos-openbmc-58238eb232bd3c89c28ffa842b1b588759885675.zip
phosphor-hwmon: fixing starting occ sensor
On P9 the occ device has `:` in path, and it needs to be converted to `--` while starting hwmon service. The commit 2f714db14 accidentally removes the convertion, and cause P9's occ hwmon sensor are not started. This commit fixes the issue by converting `:` to `--` first. Tested: Verify the occ hwmon sensors are started on Romulus (From meta-phosphor rev: b9f0f689b1b86f3415c83bb3bace0c0f78ea65b0) Change-Id: If7a1cf91fdde31ed83db99fa16553cc5577bad82 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rwxr-xr-xmeta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh b/meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
index cf72528aa..c1ec42e94 100755
--- a/meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
+++ b/meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh
@@ -17,7 +17,7 @@ then
fi
fi
+path="${path//:/--}"
path="${path//-/\\x2d}"
-path="${path//:/\\x3a}"
systemctl $action 'xyz.openbmc_project.Hwmon@'$path'.service'
OpenPOWER on IntegriCloud