summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/wakeonlan.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-07 19:40:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-07 19:40:39 (GMT)
commitf441710103513f9621672152b889bfda7f50f064 (patch)
treeacbcec242d3444383c46162dd27d964c1eeac9e4 /abs/core/supplemental-web/wakeonlan.sh
parentf57e609997d91dbdfaa2e18b1e6e7e95876831bc (diff)
downloadlinhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.zip
linhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.tar.gz
linhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.tar.bz2
tilda, wmaker e16 settings: move /reneame to their proper place in the tree.
Diffstat (limited to 'abs/core/supplemental-web/wakeonlan.sh')
-rw-r--r--abs/core/supplemental-web/wakeonlan.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/supplemental-web/wakeonlan.sh b/abs/core/supplemental-web/wakeonlan.sh
new file mode 100644
index 0000000..1213f79
--- /dev/null
+++ b/abs/core/supplemental-web/wakeonlan.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+HWADDR=`curl -s http://localhost/xymon/hobbit-cgi/svcstatus.sh?CLIENT=$1|grep HWaddr|tr -s [:space:]| cut -d" " -f5|uniq`
+
+#for mac in `grep HW "$DIR/$FILE" |awk '{ print $5 } '`
+for mac in $HWADDR
+do
+ echo "/usr/bin/wol -v $mac"
+ /usr/bin/wol -v $mac
+done
+
+
+