News for hackers. Stuff that matters.
Re:How do Wake-On-LAN works by LittleLily on Thursday April 16, 2026 @12:08AM (#47788556)
Here's an equivalent shell script that only uses bash builtins, so no other software required:

  #!/bin/bash 
  mac="\\x${1//:/\\x}" 
  wol="\xFF\xFF\xFF\xFF\xFF\xFF" 
  for i in {1..16}; do wol+="$mac"; done 
  printf "$wol" > "/dev/udp/$2/9"

There are no comments on this comment yet.