Skip to content

Instantly share code, notes, and snippets.

@meinside
Last active May 26, 2020 04:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meinside/9ff7cf488e60aa704373 to your computer and use it in GitHub Desktop.
Save meinside/9ff7cf488e60aa704373 to your computer and use it in GitHub Desktop.
Bash script for WOL.
#!/bin/sh
#
# script for waking up on lan
# XXX - mac address to wake up
MAC_ADDR="01:23:45:67:AB:CD"
WOL="/usr/bin/wakeonlan" # apt-get install wakeonlan
$WOL "$MAC_ADDR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment