Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
mdmillerii
/
openbmc
/
6e5a99448106c6ff703bdcfa08ea1e6ce5c318c0
/
.
/
meta-quanta
/
meta-q71l
/
recipes-phosphor
/
quanta-powerctrl
/
files
/
poweroff.sh
blob: 8e0dae38c294e0e0936df81c7e441124630bd922 [
file
] [
log
] [
blame
]
#!/bin/bash
GPIO_BASE
=
$
(
cat
/
sys
/
devices
/
platform
/
ahb
/
ahb
:
apb
/
1e780000
.
gpio
/
gpio
/*/
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
;