Files
OpenBMC/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/chassis-powercycle
T

10 lines
186 B
Bash
Raw Normal View History

2026-04-23 17:07:55 +08:00
#!/bin/bash
if [ "$1" == "0" ]; then
echo "Enter chassis-cycle"
/usr/sbin/power-ctrl chassis-cycle
else
echo "Enter sled$1 cycle"
/usr/sbin/power-ctrl "sled$1" cycle
fi