commit 1db12bfff2993d43904feb9fcc7832b0eaf2ba25 parent 489a2b02b5cbbc334cfc3f89b343d65069a74e9d Author: Antoine Amarilli <a3nm@a3nm.net> Date: Thu, 29 Sep 2016 16:24:28 +0200 wake Diffstat:
wake | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/wake b/wake @@ -0,0 +1,12 @@ +#!/bin/bash + +# wake machine via proxy using database + +MACHINE="$1" +DB="$HOME/config/private/wakeonlan" + +PROXY=$(grep "^$1" "$DB" | cut -d ' ' -f2) +MAC=$(grep "^$1" "$DB" | cut -d ' ' -f3) + +ssh "$PROXY" wakeonlan "$MAC" +