diff options
author | Andrei Kartashev <a.kartashev@yadro.com> | 2021-12-27 17:29:28 +0300 |
---|---|---|
committer | Andrei Kartashev <a.kartashev@yadro.com> | 2022-02-08 12:15:38 +0300 |
commit | cf22fb5c896fd806e285437928babc77c5b0caa2 (patch) | |
tree | f0a6673d2292ae077e82968644aaa6262e9823dd /meta-quanta/meta-gbs | |
parent | 80184e26c6da5e416c330cd929e867850a8c535b (diff) | |
download | openbmc-cf22fb5c896fd806e285437928babc77c5b0caa2.tar.xz |
fix interface usage for OperatingSystemState
OperatingSystemState property of
xyz.openbmc_project.State.OperatingSystem.Status should be PDI enum of
type OSStatus.
This commit fixes values to be compatible with PDI.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: I3e0af91f5ec8f0d9e5f6f722f8161386b9c7b430
Diffstat (limited to 'meta-quanta/meta-gbs')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/boot-status-led.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/boot-status-led.sh b/meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/boot-status-led.sh index a80082a1cd..0cc4c64541 100644 --- a/meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/boot-status-led.sh +++ b/meta-quanta/meta-gbs/recipes-gbs/boot-status-led/files/boot-status-led.sh @@ -35,10 +35,10 @@ while true; do fi continue else - if [[ $boot_status != "\"Standby\"" ]] && [[ $led_status != "BLINKING" ]];then + if [[ $boot_status != "\"xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Standby\"" ]] && [[ $led_status != "BLINKING" ]];then busctl set-property $LED_SERVICE_NAME $LED_INACTIVE_OBJPATH $LED_INTERFACE_NAME $LED_Property b true led_status="BLINKING" - elif [[ $boot_status == "\"Standby\"" ]] && [[ $led_status != "ON" ]];then + elif [[ $boot_status == "\"xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Standby\"" ]] && [[ $led_status != "ON" ]];then busctl set-property $LED_SERVICE_NAME $LED_INACTIVE_OBJPATH $LED_INTERFACE_NAME $LED_Property b false busctl set-property $LED_SERVICE_NAME $LED_STANDBY_OBJPATH $LED_INTERFACE_NAME $LED_Property b true led_status="ON" |