From 29fdafa1dd57d726851d62c61a152b774718ce72 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 18 Mar 2015 15:08:42 +0100 Subject: [PATCH] [wake.sh] Pour wakeonlan en masse les machines de l'IUT --- wake.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 wake.sh diff --git a/wake.sh b/wake.sh new file mode 100755 index 0000000..d8e12fe --- /dev/null +++ b/wake.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Pour wakeonlan les machines des salles de TP Réseaux de l'IUT + +case "$1" in + g) MACS="34:17:eb:d1:4f:fc 34:17:eb:d1:cf:35 34:17:eb:d1:54:0e 34:17:eb:d1:4e:6d 34:17:eb:d1:cf:29 34:17:eb:d1:52:53 34:17:eb:d1:56:4e 34:17:eb:d1:d0:f9 34:17:eb:d1:52:29 34:17:eb:d1:cf:0f 34:17:eb:d1:ce:61 34:17:eb:d1:4e:93 34:17:eb:d1:52:3c 34:17:eb:d1:d1:15 34:17:eb:d1:52:fd 34:17:eb:d1:d8:f5 34:17:eb:d1:53:13 34:17:eb:d1:55:5f 34:17:eb:d1:d0:d8 34:17:eb:d1:ce:4a 34:17:eb:d1:4e:a9 34:17:eb:d1:d0:df 34:17:eb:d1:56:62 34:17:eb:d1:56:6f 34:17:eb:d1:d1:44 34:17:eb:d1:4e:97 34:17:eb:d1:56:8c 34:17:eb:d1:56:a3 34:17:eb:d1:cf:3c 34:17:eb:d1:56:9d";; + *) echo "Room unknown" ; exit 1 ;; +esac + +sudo wakeonlan $MACS -- 2.39.2