Skip to content
Snippets Groups Projects
Verified Commit b0cf5dd6 authored by David Beniamine's avatar David Beniamine
Browse files

Fixup return IP not MAC

parent 44af0245
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ netcat -k -l $IP 9999 | \ ...@@ -25,7 +25,7 @@ netcat -k -l $IP 9999 | \
if [ $(echo "$MAC" | egrep -c "^([0-9a-f]{2}:?){6}$") -eq 1 ] if [ $(echo "$MAC" | egrep -c "^([0-9a-f]{2}:?){6}$") -eq 1 ]
then then
wakeonlan -i $broadcast "$MAC" wakeonlan -i $broadcast "$MAC"
bootedip=`arp | grep "$MAC" | awk '{print $3}'` bootedip=`arp | grep "$MAC" | awk '{print $1}'`
echo "$bootedip" | netcat $subnet.51 9999 echo "$bootedip" | netcat $subnet.51 9999
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment