scripts/wol

72 lines
1.8 KiB
Plaintext
Raw Normal View History

2014-10-21 10:51:09 +02:00
#!/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
#
# -----------------------------------------------------------
#
2019-10-17 14:18:15 +02:00
# Liste des machines susceptibles d'être réveillées
FURY="70:4d:7b:30:0d:55"
2014-10-21 10:51:09 +02:00
DEATH=""
2021-11-29 14:17:21 +01:00
WAR="2C:F0:5D:72:86:95"
2014-10-21 10:51:09 +02:00
STRIFE="80:EE:73:52:9E:F7"
2022-10-12 15:39:33 +02:00
JDELL="54:BF:64:79:C6:CA"
2014-10-21 10:51:09 +02:00
# Fin des variables globales
# -----------------------------------------------------------
# **********************************************************************************************
# **********************************************************************************************
#
# Programme principale
#
# -----------------------------------------------------------
case "$1" in
2021-11-29 14:17:21 +01:00
war | game )
wakeonlan "${WAR}"
2014-10-21 10:51:09 +02:00
;;
2019-10-17 14:18:15 +02:00
fury | kodi | mediacenter )
2021-11-29 14:17:21 +01:00
wakeonlan "${FURY}"
2014-10-21 10:51:09 +02:00
;;
strife )
2021-11-29 14:17:21 +01:00
wakeonlan "${STRIFE}"
2014-10-21 10:51:09 +02:00
;;
2022-10-12 15:39:33 +02:00
jdell )
wakeonlan "${JDELL}"
;;
2014-10-21 10:51:09 +02:00
* )
printf "Use: %s [Computer'name to wake-up]\n" "${0}"
exit 1
;;
esac
exit 0
# Fin de la boucle principale
# -----------------------------------------------------------
# **********************************************************************************************