Skip to content

Instantly share code, notes, and snippets.

View Davido264's full-sized avatar
🗿

David Ballesteros Davido264

🗿
View GitHub Profile
@frebib
frebib / hibereboot
Last active March 11, 2024 06:10
hibereboot: A 'hibernate & reboot' one-shot hack script for systemd-based hosts
#!/bin/sh
set -e
# hibereboot: A 'hibernate & reboot' one-shot hack script for systemd-based hosts
#
# Place this script somewhere in your $PATH and run it (as root) to hibernate and reboot.
# For full automation, allow the script to be run with passwordless-sudo:
#
# > /etc/sudoers
# yourusername ALL=(ALL) SETENV:NOPASSWD: /path/to/hibereboot