commit | bb79266625ef651ab97d59ff7d911f8cf25490d8 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Fri Apr 14 08:48:58 2023 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Fri Apr 14 16:27:12 2023 +0000 |
tree | 0f7736a0bad13107bb6c4f4cd8d1d6f343a7b93f | |
parent | 2ceeb11b72240ce9533e1d8c42a28dcaef02524b [diff] |
meta-facebook: greatlakes: shellcheck fixes Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifcfed957ff406235a657e02179ee5dffe1c565c3
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 22a093f..daaebc8 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 @@ 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 88c27fb..938c914 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 @@ if [ "$host_status" == "$STATE_ON" ] then host-reboot 1 - exit 0; else echo "Host is Off" exit 1;