Skip to content

Instantly share code, notes, and snippets.

@ugovaretto
Created February 11, 2023 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugovaretto/6366b5fd5ebb1e88a7bce79260e6ddb4 to your computer and use it in GitHub Desktop.
Save ugovaretto/6366b5fd5ebb1e88a7bce79260e6ddb4 to your computer and use it in GitHub Desktop.
Enable wake-on-lan magic packet before hibernating
#!/usr/bin/env bash
# run with sudo
ethtool -s enp8s0 wol g
systemctl hibernate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment