summaryrefslogtreecommitdiff
path: root/bin/wol
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-03-12 12:31:20 +0100
committerMarc Vertes <mvertes@free.fr>2021-03-12 12:31:20 +0100
commit050afa8def0739b459122b9d4c7fcf854ae1ed2a (patch)
tree9c0c67707c71c8f9351788dc346c96fd9e8fcc4a /bin/wol
parent9aa9c25a4d2ced1ea41d1d981b3fad9fe28a17a6 (diff)
added wol. Updated vm
Diffstat (limited to 'bin/wol')
-rwxr-xr-xbin/wol6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/wol b/bin/wol
new file mode 100755
index 0000000..39bce0d
--- /dev/null
+++ b/bin/wol
@@ -0,0 +1,6 @@
+#!/bin/sh -x
+ip_plex=192.168.1.90 mac_plex=b0:83:fe:61:a7:aa
+eval "mac=\$mac_$1 ip=\$ip_$1"
+wakeonlan "$mac"
+ping -o "$ip"
+ssh "root@$ip"