xref: /openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/device-reinitial (revision 2d3c44e1e6f08d211b0c3820ebd4081fd7bd51e0)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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

served by {OpenGrok

Last Index Update: Sun Nov 16 03:01:18 CST 2025