Skip to content

Instantly share code, notes, and snippets.

@Kentzo
Created October 13, 2012 07:37
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 Kentzo/3883701 to your computer and use it in GitHub Desktop.
Save Kentzo/3883701 to your computer and use it in GitHub Desktop.
Wake machine on LAN using its MAC address.
#! /usr/bin/env sh
MAC=$1
BROADCAST=$2
while sleep 0.5; do
wakeonlan -i $2 -p 7 $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment