summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-tiogapass
diff options
context:
space:
mode:
authorVijay Khemka <vijaykhemka@fb.com>2020-02-13 01:51:12 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2020-02-20 20:06:21 +0300
commit110bb2f806d9387213c11f2bd4b1ff24c326bdef (patch)
tree04e0565db0acc3c7b694e9e0f63c3679c69edbf3 /meta-facebook/meta-tiogapass
parente9100025cf3a92f90e5a1bec386b1020d51bfb24 (diff)
downloadopenbmc-110bb2f806d9387213c11f2bd4b1ff24c326bdef.tar.xz
meta-facebook: tiogapass: Fix sled cycle support
Fixing sled cycle with order and also adding output. (From meta-facebook rev: e071aa2001021afa4d8a9a3d4982d6fcf681654a) Change-Id: I8ac00cdc69cf10a04e2a2a41a87a7cc4564d66b8 Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-facebook/meta-tiogapass')
-rwxr-xr-xmeta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
index c587bcf87..30fa34cc8 100755
--- a/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
+++ b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
@@ -33,6 +33,12 @@ sled_cycle() {
i2cset -y 7 0x45 0xd9 c
}
+if [ $1 == "sled-cycle" ]; then
+ echo "SLED_CYCLE starting at $(date)"
+ sled_cycle
+ exit 0;
+fi
+
if [ $# -lt 2 ]; then
echo "Total number of parameter=$#"
echo "Insufficient parameter"
@@ -40,10 +46,6 @@ if [ $# -lt 2 ]; then
exit 0;
fi
-if [ $1 == "sled-cycle" ]; then
- sled_cycle
-fi
-
if [ $1 != "mb" ]; then
echo "Invalid parameter1=$1"
usage;