68 lines
1.8 KiB
Bash
Executable File
68 lines
1.8 KiB
Bash
Executable File
#!/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="70:4d:7b:30:0d:55"
|
|
DEATH=""
|
|
WAR="2C:F0:5D:72:86:95"
|
|
STRIFE="80:EE:73:52:9E:F7"
|
|
|
|
# Fin des variables globales
|
|
# -----------------------------------------------------------
|
|
# **********************************************************************************************
|
|
|
|
# **********************************************************************************************
|
|
#
|
|
# Programme principale
|
|
#
|
|
# -----------------------------------------------------------
|
|
|
|
case "$1" in
|
|
war | game )
|
|
wakeonlan "${WAR}"
|
|
;;
|
|
fury | kodi | 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
|
|
# -----------------------------------------------------------
|
|
# **********************************************************************************************
|