Skip to content

Instantly share code, notes, and snippets.

@melissacoleman
Last active October 23, 2020 14:20
Show Gist options
  • Save melissacoleman/ff05d8fea5e2113ddb8628352c9e9ade to your computer and use it in GitHub Desktop.
Save melissacoleman/ff05d8fea5e2113ddb8628352c9e9ade to your computer and use it in GitHub Desktop.
Service for safe-to-power-off image
[Unit]
Description=safe-to-power-off image
DefaultDependencies=no
After=umount.target
Before=final.target
[Service]
ExecStart=/usr/bin/python3 /path/to/framebuffer-pythonscript.py -img /path/to/unplugimage.jpg
Type=oneshot
[Install]
WantedBy=shutdown.target
@xlla
Copy link

xlla commented Oct 23, 2020

while execute shutdown command, I can't see any image on framebuffer screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment