diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-10 18:01:19 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-10 21:54:55 +0000 |
commit | 8b907c2f75de3e8c05c19d908381828380a853df (patch) | |
tree | e7145acaabd25772738efcff49934df37847a862 | |
parent | c5aa0ec48d810654ded083b86b069c86e08d492a (diff) | |
download | blackbird-openbmc-8b907c2f75de3e8c05c19d908381828380a853df.tar.gz blackbird-openbmc-8b907c2f75de3e8c05c19d908381828380a853df.zip |
Fix logic error in OCC watchdog on single CPU systems
-rwxr-xr-x | meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh index ffd1e6bd0..fa3a3ea3c 100755 --- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh +++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh @@ -93,11 +93,11 @@ if [ "$1" == "watchdog" ]; then if [ $CPU_COUNT -gt 1 ]; then if [ ! -e /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error ]; then OCC_FAULT=1 - fi - else - STATUS=$(cat /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error) - if [ $STATUS != 0 ]; then - OCC_FAULT=1 + else + STATUS=$(cat /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error) + if [ $STATUS != 0 ]; then + OCC_FAULT=1 + fi fi fi |