meta-facebook: tiogapass: Fix sled cycle support
Fixing sled cycle with order and also adding output.
Change-Id: Ib4d6a06ce38169deba1878b53f7d96c9691b74a9
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util b/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
index c587bcf..30fa34c 100755
--- a/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
+++ b/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/power-util
@@ -33,6 +33,12 @@
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 @@
exit 0;
fi
-if [ $1 == "sled-cycle" ]; then
- sled_cycle
-fi
-
if [ $1 != "mb" ]; then
echo "Invalid parameter1=$1"
usage;