Skip to content

Custom shutdown button #179

Answered by wpa-2
Nexsq asked this question in Q&A
Jun 30, 2024 · 2 comments · 17 replies
Discussion options

You must be logged in to vote

I decided to add a restart and a shutdown button to my pwnagotchi, since it has pi sugar 2 with the custom button already installed. For restart button it was so simple I actually was suprised it worked: I just went to 10.0.0.2:8421 and added custom script for double tap like this: "sudo systemctl restart pwnagotchi"

And now how do I add a shutdown function? There's no "sudo systemctl shutdown pwnagotchi" as far as I know, and I also want it to have this sleeping face like when shutting it down with web ui (optionally)

I really would appreciate someone's help :D Thanks

Shut it down like this
https://discord.com/channels/717817147853766687/853327965395877898/1257754572638912572

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
11 replies
@Nexsq
Comment options

@jayofelony
Comment options

@Nexsq
Comment options

@renewedbullet
Comment options

@Nexsq
Comment options

Comment options

You must be logged in to vote
6 replies
@wpa-2
Comment options

@Nexsq
Comment options

@wpa-2
Comment options

@Nexsq
Comment options

@Nexsq
Comment options

Answer selected by rai68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants