diff --git a/wol/scripts/sendmac.sh b/wol/scripts/sendmac.sh index 80ed7e99050278c07f547b937ee25ae689ee4a8f..02fce1ef455c1b6b568c295197b6aa5d3881d80b 100755 --- a/wol/scripts/sendmac.sh +++ b/wol/scripts/sendmac.sh @@ -18,7 +18,7 @@ IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1) netcat="netcat -l $IP 9999" -KPID=`ps aux | grep \'$netcat\' | awk '{print $2}'` +KPID=`ps aux | grep "$netcat" | awk '{print $2}'` [ ! -z "$KPID" ] && kill $KPID subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3)