Skip to content

Instantly share code, notes, and snippets.

@georgescumihai
Created November 1, 2020 14:18
Show Gist options
  • Save georgescumihai/300d0bf9ab8a2715e0232e87bf53f5b3 to your computer and use it in GitHub Desktop.
Save georgescumihai/300d0bf9ab8a2715e0232e87bf53f5b3 to your computer and use it in GitHub Desktop.
Wake on lan bash script
#!/bin/bash
IP_ADDRESS="192.168.1.255"
MAC_ADDRESS="c2:91:f2:20:9F:65"
for i in $(seq 1 $END_PORT); do echo $i; done
END_PORT=10000
for ((i=1;i<=END_PORT;i++)); do
wakeonlan -i $IP_ADDRESS -p $i $MAC_ADDRESS
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment