From bb79266625ef651ab97d59ff7d911f8cf25490d8 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 14 Apr 2023 08:48:58 -0500 Subject: meta-facebook: greatlakes: shellcheck fixes Signed-off-by: Patrick Williams Change-Id: Ifcfed957ff406235a657e02179ee5dffe1c565c3 --- .../state/phosphor-state-manager/greatlakes/host-powercycle | 4 ++-- .../state/phosphor-state-manager/greatlakes/host-powerreset | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'meta-facebook') diff --git a/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powercycle b/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powercycle index 22a093fc1e..daaebc8494 100644 --- a/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powercycle +++ b/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powercycle @@ -1,7 +1,7 @@ #!/bin/bash # Provide source directive to shellcheck. -# shellcheck source=meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-poweron +# shellcheck source=meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/power-cmd source /usr/libexec/phosphor-state-manager/power-cmd HOST_ID=$1 @@ -29,7 +29,7 @@ then host-reboot 6 sleep 15 host-reboot 2 - + host_status=$(host-power-status $SLOT_ID) if [ "$host_status" == "$STATE_ON" ] then diff --git a/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powerreset b/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powerreset index 88c27fb2a2..938c914f95 100644 --- a/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powerreset +++ b/meta-facebook/recipes-phosphor/state/phosphor-state-manager/greatlakes/host-powerreset @@ -39,7 +39,6 @@ host_status=$(host-power-status $SLOT_ID) if [ "$host_status" == "$STATE_ON" ] then host-reboot 1 - exit 0; else echo "Host is Off" exit 1; -- cgit v1.2.3