summaryrefslogtreecommitdiffstats
path: root/abs/extra/wol/wakeonlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/wol/wakeonlan.sh')
-rwxr-xr-xabs/extra/wol/wakeonlan.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/extra/wol/wakeonlan.sh b/abs/extra/wol/wakeonlan.sh
new file mode 100755
index 0000000..f87dd34
--- /dev/null
+++ b/abs/extra/wol/wakeonlan.sh
@@ -0,0 +1,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
+
+
+