From af3b47d82e7fb62cd439905fd6a798229f94e040 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Thu, 2 Aug 2018 13:24:20 +0200 Subject: [PATCH] Netcat not permanent --- wol/scripts/wakeonlanservice.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wol/scripts/wakeonlanservice.sh b/wol/scripts/wakeonlanservice.sh index 375c6fe..e4dfeab 100755 --- a/wol/scripts/wakeonlanservice.sh +++ b/wol/scripts/wakeonlanservice.sh @@ -26,7 +26,7 @@ broadcast=$(ip a | awk '/inet.*eth1/ {print $4}' | cut -d / -f 1) subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3) while true do - MAC=`netcat -k -l $IP 9999` + MAC=`netcat -l $IP 9999` if [ $(echo "$MAC" | egrep -c "^([0-9a-f]{2}:?){6}$") -eq 1 ] then wakeonlan -i $broadcast "$MAC" -- GitLab