#!/bin/bash
DIR="/data/srv/hobbit/var/hostdata/$1"
FILE=`ls -t --group-directories-first $DIR|tail -n 1`
for mac in `grep HW "$DIR/$FILE" |awk '{ print $5 } '`
do
	/usr/bin/wol -v $mac
done