Skip to content

Commit

Permalink
Update powerbutton.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rern committed Jan 16, 2024
1 parent 4376cc4 commit c9be203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srv/http/bash/powerbutton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
if grep -q 'poweroff,gpiopin=22' /boot/config.txt; then # audiophonic
gpioset -t0 -c0 4=0
gpioset -t0 -c0 22=1
gpiomon -b pull-down -e rising -c0 17
gpiomon -b pull-down -e rising -c0 -n1 17
gpioset -t0 -c0 4=1
sleep 1
gpioset -t0 -c0 4=0
else
. /srv/http/data/system/powerbutton.conf
gpioset -t0 -c0 $led=1
gpiomon -b pull-up -e falling -c0 $sw
gpioset -t0 -c0 $led=1 # -t time -c chip pin=[1/0]
gpiomon -b pull-up -e falling -c0 -n1 $sw # -b bias -e edge -c chip -n numberOfEvent pin
fi

/srv/http/bash/power.sh off

0 comments on commit c9be203

Please sign in to comment.