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