mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2026-03-12 21:02:52 -07:00
PiSugar 3 users need graceful shutdown with e-ink feedback, boot-loop prevention when charging from dead battery, and automatic recovery when pisugar-server loses I2C connection after MCU wake. - safe-shutdown.sh: stops pwnagotchi, draws sleeping face on e-ink, powers off. Boot-loop guard skips shutdown when battery <10% and charging. - pisugar-watchdog.sh + systemd timer: detects MCU wake from deep sleep and restarts pisugar-server when I2C is present but daemon reports disconnected. - epd-shutdown.py / epd-startup.py: e-ink display faces for Waveshare V4. Exit silently on non-V4 displays. Signed-off-by: CoderFX <4704376+CoderFX@users.noreply.github.com>
15 lines
292 B
Desktop File
15 lines
292 B
Desktop File
[Unit]
|
|
Description=E-ink boot indicator (Waveshare V4)
|
|
DefaultDependencies=no
|
|
After=local-fs.target
|
|
Before=pwnagotchi.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/home/pi/.pwn/bin/python3 /usr/local/bin/epd-startup.py
|
|
TimeoutStartSec=30
|
|
RemainAfterExit=no
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|