Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
meta-quanta
/
139486a40ca8fa9d3ca45fb7d38afba83ea6e382
/
.
/
meta-q71l
/
recipes-phosphor
/
quanta-powerctrl
/
files
/
poweroff.sh
blob: e429131a76711edfb2ddca7c579cc6b77a4d752a [
file
] [
log
] [
blame
]
#!/bin/bash
GPIO_BASE
=
$
(
cat
/
sys
/
class
/
gpio
/
gpiochip
*/
base
)
GPIO_NUM
=
$
((
$GPIO_BASE
+
24
+
3
))
echo
1
>
/
sys
/
class
/
gpio
/
gpio$
{
GPIO_NUM
}/
value
sleep
5
echo
0
>
/
sys
/
class
/
gpio
/
gpio$
{
GPIO_NUM
}/
value
exit
0
;