diff options
author | Anton D. Kachalov <gmouse@google.com> | 2021-02-06 14:23:10 +0300 |
---|---|---|
committer | Anton D. Kachalov <gmouse@google.com> | 2021-05-07 11:48:55 +0300 |
commit | 22e0025925e853040a4c829abd3077c960aca831 (patch) | |
tree | a289ad41c92b3d98090b9855e7ddf0cd7512b1e8 /meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh | |
parent | 39c444bb509d1d3560b63ebaa66b573772dcf223 (diff) | |
download | openbmc-22e0025925e853040a4c829abd3077c960aca831.tar.xz |
phosphor-hwmon: install configs from repo
Use meson to build the package.
This change required as a part of privilege separation work:
https://github.com/openbmc/openbmc/issues/3383
This change should be merged after individual repo change:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/40277
Signed-off-by: Anton D. Kachalov <gmouse@google.com>
Change-Id: I542645d55b8646e0ddb3fb95f50a1cd87334706e
Diffstat (limited to 'meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh')
-rwxr-xr-x | meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh | 24 |
1 files changed, 0 insertions, 24 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 deleted file mode 100755 index 2e346d0fb..000000000 --- a/meta-phosphor/recipes-phosphor/sensors/phosphor-hwmon/start_hwmon.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -action=$1 -devpath=$2 -of_fullname=$3 - -#Use of_fullname if it's there, otherwise use devpath. - -path=$of_fullname -if [ -z "$path" ] -then - path=$devpath - - if [[ "$path" =~ (.*)/hwmon/hwmon[0-9]+$ ]]; - then - path=${BASH_REMATCH[1]} - fi -fi - -# Needed to re-do escaping used to avoid bitbake separator conflicts -path="${path//:/--}" -# Needed to escape prior to being used as a unit argument -path="$(systemd-escape "$path")" -systemctl --no-block "$action" "xyz.openbmc_project.Hwmon@$path.service" |