From 58238eb232bd3c89c28ffa842b1b588759885675 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Fri, 14 Dec 2018 14:33:55 +0800 Subject: 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 Signed-off-by: Brad Bishop --- meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.1