blob: 6afae93fa50f2f3e9e26bae842c457a94f45b068 [file] [log] [blame]
Charles Kearney08106352023-05-30 14:26:28 -05001#!/bin/sh
2myaddress=$(gpiofind PSU2_INST)
3state=$(gpioget "$myaddress")
4if [ "r$state" = "r1" ]
5then
6 psus-manager 2 up
7else
8 psus-manager 2 down
9fi
10/usr/bin/phosphor-multi-gpio-monitor --config /usr/share/gpios/psu2.json