commit | 92bed1f1b42735bcaeca18ccc723248cdf8d1865 | [log] [tgz] |
---|---|---|
author | Yuxiao Zhang <yuxiaozhang@google.com> | Mon Aug 26 14:46:24 2024 -0700 |
committer | Yuxiao Zhang <yuxiaozhang@google.com> | Mon Aug 26 14:46:24 2024 -0700 |
tree | b9281a68244e13f670e530d224f23dfa191f4b9d | |
parent | 9baa5d1107398576cd74b70f33556b502e521dca [diff] |
meta-google:gbmc-bridge Misc fix for powercycle script Change-Id: I373622c0dfd6b1cf33cbd88c5c46fcb991dc7025 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/50-gbmc-psu-hardreset.sh.in b/meta-google/recipes-google/networking/gbmc-bridge/50-gbmc-psu-hardreset.sh.in index 1a5e055..588efcb 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/50-gbmc-psu-hardreset.sh.in +++ b/meta-google/recipes-google/networking/gbmc-bridge/50-gbmc-psu-hardreset.sh.in
@@ -26,8 +26,8 @@ return 0 fi - if [ "${COORDINATED_POWERCYCLE}" == "true" ]; then - echo "Requesting powercyce" >&2 + if [[ "${COORDINATED_POWERCYCLE}" == "true" ]]; then + echo "Requesting powercycle" >&2 update-dhcp-status 'POWERCYCLE' "netboot powercycle" || return else echo "Powercycling" >&2