summaryrefslogtreecommitdiffstats
path: root/abs/extra/wol/wakeonlan.sh
blob: f87dd34f3159475d171a893ac6278e94d277339d (plain)
1
2
3
4
5
6
7
8
9
10
#!/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