diff options
author | Lei YU <mine260309@gmail.com> | 2018-12-14 09:33:55 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-12-17 21:34:15 +0300 |
commit | 58238eb232bd3c89c28ffa842b1b588759885675 (patch) | |
tree | d4ba7db8bd561544933c996c8d71ff2e5d7546a4 /meta-phosphor | |
parent | 838ccf62b75e32942cb4c397d43e5f6ff9aa8f5f (diff) | |
download | openbmc-58238eb232bd3c89c28ffa842b1b588759885675.tar.xz |
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>
Diffstat (limited to 'meta-phosphor')
-rwxr-xr-x | meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh | 2 |
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' |