diff options
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh index e22dd20438..14136b7669 100644 --- a/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh +++ b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh @@ -27,12 +27,12 @@ stop_phosphor_hwmon() { main() { # Stop phosphor-hwmon so that ADM1272 powercycle doesn't happen # in the middle of an i2c transaction and stuck the bus low - stop_phosphor_hwmon + stop_phosphor_hwmon "$@" gpioset gpiochip6 26=1 } # Exit without running main() if sourced -return 0 2>/dev/null - -main "$@" +if ! (return 0 2>/dev/null) ; then + main "$@" +fi |