From 453d61e0eb63925716b383cc7f19c6f429e3cb4e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 21 Oct 2014 10:51:09 +0200 Subject: [PATCH] Small script for wakeonlan. --- wol | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 wol diff --git a/wol b/wol new file mode 100755 index 0000000..2f1fbc8 --- /dev/null +++ b/wol @@ -0,0 +1,67 @@ +#!/bin/sh +################################################################################################ +## +## Nom: wol - Wake On Lan +## +## Licence: Creative Commons +## +## Comportement: Wake-up the choosen computer +## +## +################################################################################################ +## +## Date de création: 2010-11-04 +## +## Auteur: Gardouille +## +## +## Dernière modifications: +## 04/11/2010: - Création +# ********************************************************************************************** +## +## +################################################################################################ + +# ********************************************************************************************** +# +# Variables globales +# +# ----------------------------------------------------------- +# +# Liste des machines susceptibles d'être réveillées  +FURY="48:5B:39:F6:10:3A" +DEATH="" +WAR="B8:27:EB:D6:49:0C" +STRIFE="80:EE:73:52:9E:F7" + +# Fin des variables globales +# ----------------------------------------------------------- +# ********************************************************************************************** + +# ********************************************************************************************** +# +# Programme principale +# +# ----------------------------------------------------------- + +case "$1" in + war | raspberry | pi ) + wakeonlan $WAR + ;; + fury | xbmc | mediacenter ) + wakeonlan $FURY + ;; + strife ) + wakeonlan $STRIFE + ;; + * ) + printf "Use: %s [Computer'name to wake-up]\n" "${0}" + exit 1 + ;; +esac + + +exit 0 +# Fin de la boucle principale +# ----------------------------------------------------------- +# **********************************************************************************************