Sign in
◑
Theme
gbmc
/
meta-gbmc-staging
/
44a214d524782bd49b5483392cd90f2dcdebf202
/
.
/
recipes-google
/
psu-hardreset
/
gbmc-psu-hardreset-gpio
/
gbmc-psu-hardreset-gpio.sh.in
blob: 7a3449087ff510daf96913f3526671d658f9f5e8 [
file
]
#!/bin/bash
GPIO_LABEL
=
'@GPIO_LABEL@'
if
!
chip_and_line
=
$
(
gpiofind $GPIO_LABEL
);
then
echo
"Failed to find gpio: $GPIO_LABEL"
>&
2
exit
1
fi
gpioset $
{
chip_and_line
}=
'@ACTIVE_VAL@'