Created
November 1, 2020 14:18
-
-
Save georgescumihai/300d0bf9ab8a2715e0232e87bf53f5b3 to your computer and use it in GitHub Desktop.
Wake on lan bash script
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
#!/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