Last active
January 9, 2024 08:32
-
-
Save ugovaretto/9f8af33ae28819121396179eae358225 to your computer and use it in GitHub Desktop.
Setup eth card for wake on lan and hibernate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#run with 'sudo ./hibernate.sh' | |
#argument is the name of the eth network adapter e.g. 'eno1' | |
ethtool -s $1 wol pumbg | |
systemctl hibernate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment