1#!/bin/bash 2# shellcheck source=meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/device-util 3source /usr/libexec/phosphor-gpio-monitor/device-util 4 5# shellcheck source=meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/auto-power 6source /usr/libexec/phosphor-gpio-monitor/auto-power 7 8# End the script if the FRU version is DVT1 and triggered by SGPIO18 9if ! check-auto-power-condition "$1"; then 10 exit 0 11fi 12 13mb_power_lose_reprobe 14 15busctl call xyz.openbmc_project.FruDevice \ 16 /xyz/openbmc_project/FruDevice \ 17 xyz.openbmc_project.FruDeviceManager \ 18 ReScan 19