wake-on-lan-service/run.sh

9 lines
108 B
Bash
Raw Normal View History

2022-06-12 23:09:01 +00:00
#!/bin/sh
set -u
while true; do
mac=$(nc -l -p "$PORT" | sed 's/[^a-f0-9:]//g')
awake "$mac"
done